In the members-only forum a user asked,
I'd like to know how to automate images (badges) of categories when a post is opened. Example is here:
http://lexiscleankitchen.com/2016/09/11/slow-cooker-carne-asada/The images seem to auto generate above the post content.
Thank you!
In this tutorial we shall
- replace post info in entry header with entry meta and remove entry meta from entry footer
- create a custom shortcode which is a variation of the Genesis standard
Filed Under: Genesis, Premium Content
to output category links having category slugs as classes so they can be targeted in CSS - use
genesis_post_meta
filter hook to customize the entry meta using our custom shortcode
on single post pages in Genesis.
when hovered:
Step 1
Add the following in child theme's functions.php:
To view the full content, please sign up for the membership.
Already a member? Log in below or here.
I assume the second block of code goes in css, not functions. Thank you SO much, Sridhar!
Yes of course. Thanks for pointing it out. I’ve corrected it.
Hi, Sri. How do you make it show ONLY the recipe key categories. For example, I am testing it on this test site
http://dev2.addapinch.com/bacon-wrapped-jalapeno-poppers-recipe/
and it is showing appetizers also but I don’t have appetizers as one of the recipe key categories. Lexi has an appetizer category http://lexiscleankitchen.com/category/appetizers/ and if you choose a post in her appetizer category like this one http://lexiscleankitchen.com/2016/09/29/prosciutto-wrapped-glazed-shrimp/ – it still only shows her recipe key categories.
Does that make sense?
Thanks,
Robin
To clarify my question above, the span class is pulling ALL categories instead of ONLY the ones targeted in the CSS.
Robin
Sridhar, to take this a step further (and possibly what Robin is asking, though I can’t see her original question), is there a way to state in php:
If the following categories are not targeted, do not display their category name(s) – without having to manually re-categorize all older posts?