Tagged: Post meta info
Hello,
Can you please clarify how to do the following two tasks individual of each other:
1) Completely hide the listing of categories from being displayed in the Post Meta Info, such that it only shows the Date, Comments, and Author.
OR
2) Continue showing the categories in the Post Meta Info (but hide the child categories from being shown), such that it is like this: Date, Comments, Parent Categories, Author
We have some posts that fall under multiple categories (and multiple child categories), so we would be interested in trying out both options listed above to see which will work best for our blog.
Thanks!
Hi ACNLatitudes!
Thank you for using Enfold.
You can try this in the Quick CSS field:
span.blog-categories.minor-meta, span.blog-categories.minor-meta + .text-sep {
display: none;
}
Regards,
Ismael
That css code works great. If we later decide to keep the categories, but only want to have the parent categories displayed, is there any code that can be used for that (e.g., show parent categories, but hide all child categories)?
Hi!
You can find the code in includes > loop-index.php file. Unfortunately, the get_the_term_list function doesn’t have any arguments or options to exclude child categories. You need to rewrite the code. Please hire a freelance developer or contact codeable: http://kriesi.at/contact/customization
Best regards,
Ismael
OK. Thanks for the info. You can mark this ticket as resolved.