[Resolved] Latest update did funny things to my child theme

Home Forums Support [Resolved] Latest update did funny things to my child theme

Home Forums Support Latest update did funny things to my child theme

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #197657
    Pete

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

    #197672
    Tom
    Lead Developer
    Lead Developer

    Like what?

    #197758
    Pete

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

    #197763
    Tom
    Lead Developer
    Lead Developer

    Why shouldn’t it? Are categories turned off in “Customize > Blog > Blog Content”. Are there no categories set?

    #197764
    Pete

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

    #197765
    Pete

    I’m using a child theme

    #197771
    Tom
    Lead Developer
    Lead Developer

    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”?

    #197773
    Pete

    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?

    • This reply was modified 7 years, 10 months ago by Pete.
    #197779
    Tom
    Lead Developer
    Lead Developer

    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;
    }
    #197796
    Pete

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

Viewing 10 posts - 1 through 10 (of 10 total)
  • You must be logged in to reply to this topic.