Title: Div-classes
Last modified: May 13, 2019

---

# Div-classes

 *  Resolved [Der-Bank-Blog](https://wordpress.org/support/users/der-bank-blog/)
 * (@der-bank-blog)
 * [7 years ago](https://wordpress.org/support/topic/div-classes/)
 * Hola Hector
 * is it possible to set individual div-classes, e.g. for {title} {excerpt} and {
   author}.
 * E.g. ‘post-title’ instead ot ‘wpp-post-title’?
 * Cheers from Germany
 * Hansjörg

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [Hector Cabrera](https://wordpress.org/support/users/hcabrera/)
 * (@hcabrera)
 * [7 years ago](https://wordpress.org/support/topic/div-classes/#post-11526198)
 * Hey Hansjörg,
 * No, there’s no way to add custom classes to existing Content Tags. However, you
   can:
    - Use alternative CTs where available. For example, `<a href="{url}" class="
      post-title">{text_title}</a>` is pretty much the same output rendered by `{
      title}`, except for the CSS class of course.
    - `{excerpt}` doesn’t have an alternative tag but then again this CT isn’t wrapped
      in an HTML tag. It’s just the excerpt. You can wrap it in an HTML tag of your
      choice and assign your custom class(es) to it.
    - The `{author}` CT is just a link to the author profile page. It doesn’t include
      any CSS classes so you can wrap that link in another HTML tag and assign your
      custom class(es) to it.
    - Or:
    - You can [create your own custom Content Tags](https://github.com/cabrerahector/wordpress-popular-posts/wiki/3.-Filters#wpp_parse_custom_content_tags)
      with your own HTML markup (example: [Display Custom Post Type in Output](https://wordpress.org/support/topic/display-custom-post-type-in-output/)).
    - Or:
    - You could just add WPP’s CSS classes to your existing CSS rules (eg. `.post-
      title, .wpp-post-title { /*Some CSS rules here*/ }` and be done with it.
 *  -  This reply was modified 7 years ago by [Hector Cabrera](https://wordpress.org/support/users/hcabrera/).
      Reason: Added a third option
 *  Thread Starter [Der-Bank-Blog](https://wordpress.org/support/users/der-bank-blog/)
 * (@der-bank-blog)
 * [7 years ago](https://wordpress.org/support/topic/div-classes/#post-11526352)
 * Thanks Hector. I will try out these Options
 * Have a great day
    Cheers Hansjörg

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Div-classes’ is closed to new replies.

 * ![](https://ps.w.org/wordpress-popular-posts/assets/icon-256x256.png?rev=1232659)
 * [WP Popular Posts](https://wordpress.org/plugins/wordpress-popular-posts/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordpress-popular-posts/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordpress-popular-posts/)
 * [Active Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordpress-popular-posts/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordpress-popular-posts/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Der-Bank-Blog](https://wordpress.org/support/users/der-bank-blog/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/div-classes/#post-11526352)
 * Status: resolved