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?
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.
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.
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?
Hi,
Of course this theme already support that.
But, do you know this class just appears on category page?
Let's check on category page
Best Regards,
PenciDesign
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.
Hi,
That's normal because that's not required for a WordPress themeJust body class is required.
That's why you don't see it on our theme.
Best Regards,
PenciDesign
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.
Hi,
If so, please try replace this code to:
Best Regards,
PenciDesign