• Hi,

    I found this in the documentation:

    add_action( 'after_setup_theme','tu_remove_header' );
    function tu_remove_header() {
        remove_action( 'generate_header','generate_construct_header' );
    }

    What I would like to do is remove – both – generate_header and generate_before_header.

    I’ve tried several things that haven’t worked, can you show me how to do this?

    Thanks,

    Chris

Viewing 4 replies - 1 through 4 (of 4 total)
  • Leo

    (@leohsiang)

    Hi Chris,

    May I ask why you are trying to remove generate_before_header?

    It’s simply a hook and shouldn’t interfere with anything.

    Thread Starter christopheran

    (@christopheran)

    Ah, okay, that helps already ??

    I’ve been playing around with a couple of different ideas.

    Right now, with a new install of Generator Press and a site I imported in, it’s displaying menu links – every link from every menu I had on the old site.

    I wanted to remove those and when I commented out that line in header.php I got what I want ??

    But based on your post, I figured maybe something was going awry. Further investigation found that my menus either didn’t import over to the new site, or I didn’t export/import them, so I guess Generate Press was just displaying every page I had.

    I’ve set up a menu now and that issue is mostly fixed – though I would like to find out how to display the mobile style menu on desktop, rather than links across the top,

    Chris

    Thread Starter christopheran

    (@christopheran)

    And found that info here:

    https://docs.generatepress.com/article/generate_mobile_menu_media_query/

    Very cool, I’m really enjoying GP so far. Tried to find the simplest, fastest, theme that didn’t add a bunch of stuff I didn’t want ?? This fits the bill and has excellent documentation and support to boot ??

    Chris

    Leo

    (@leohsiang)

    Glad to hear ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘remove generate_before_header’ is closed to new replies.