• 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 Hector 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 can create your own custom Content Tags with your own HTML markup (example: 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 5 years, 6 months ago by Hector Cabrera. Reason: Added a third option
    Thread Starter Der-Bank-Blog

    (@der-bank-blog)

    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.