Support » Plugin: WordPress Popular Posts » Div-classes

  • Resolved Der-Bank-Blog

    (@der-bank-blog)


    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 Héctor Cabrera

    (@hcabrera)

    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 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 9 months, 2 weeks ago by Héctor Cabrera. Reason: Added a third option

    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.