Site logo

Archived topic

Latest update did funny things to my child theme

9 replies · Started by Pete on May 29, 2016

Viewing posts 1–10 of 10

<?php do_action( 'generate_after_entry_content'); ?> was the culprit. It did some funny css stuff to my child theme.

Like what?

It's hard to explain. It's showing category names when it shouldn't.

Why shouldn't it? Are categories turned off in "Customize > Blog > Blog Content". Are there no categories set?

Because they weren't there before the update. I'll check the customiser and get back to you

I'm using a child theme

So maybe you removed the code that adds the categories from your child theme?

The latest version adds it using a hook so it's able to be moved around/shown on more post types.

Did you try using the setting in "Customize > Blog > Blog Content"?

Thanks Tom, That would be exactly it. What's the best way to remove the cat tag? Display none or is there a function snippet I can use?

If you don't have the Blog add-on, then you can set the filter to false:

add_filter( 'generate_show_categories','generate_remove_cats' );
function generate_remove_cats()
{
    return false;
}

Ahh cool, I'll activate the blog addon and change the settings. Cheers.

This archived topic is closed to new replies.