Join the Soledad Facebook Users Group here
for Share, assistance, discussion, and Updates related to Soledad WordPress Theme.

If you can't create a new ticket - you can send us an email via our contact form and we will get back to you.

Okay
  Public Ticket #2129518
Category as a class
Closed

Comments

  • berams started the conversation

    In my previous theme I had in the body name of the class like so <body class="category-nameofthecategory"> However this seems not to be the case with this theme? How can I get this?

  •  2,700
    PenciDesign replied

    Hi,

    Of course this theme already support that.

    But, do you know this class just appears on category page?

    Let's check on category pagesmile.png

    Best Regards,

    PenciDesign

  • berams replied

    Sorry, my bad. Its not in the body. This is our current theme http://rainbowinmykitchen.com/chickpea-flour-chocolate-pancakes/ If you go to he div that holds a recipe you will see that it has these classes: category-breakfast tag-chickpea-flour tag-chocolate tag-chocolate-pancakes. I don't see that on this theme. Thanks.

  •  2,700
    PenciDesign replied

    Hi,

    That's normal because that's not required for a WordPress themesmile.pngJust body class is required.

    That's why you don't see it on our theme.


    Best Regards,

    PenciDesign

  • berams replied

    Is there any way to display the category name in the class on the single post? What I want to do is to display the image "Did you try this recipe ..." underneath (please scroll down the page to see what I mean) only if the post is the recipe.

  •  2,700
    PenciDesign replied

    Hi,

    If so, please try replace this code to:

    <?php $post_class = get_post_class(); $post_classess = implode( " ", $post_class ); ?>
    <div class="inner-post-entry entry-content <?php echo $post_classess; ?>" id="penci-post-entry-inner">
    

    Best Regards,

    PenciDesign