• Resolved Lars.Lemming

    (@larslemming)


    I am in the process of building a “one-page” website using a child of the Page Builder Framework, editing it in Elementor.
    I say that it is a “one-page”, though there is a second page, but this is a “receipt” for submitting a form and the user is automatically redirected to the “Home” page after 3 seconds, so a menu is not needed.
    How do I remove the menu to the right of the site logo so that it does not appear at all?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author David Vongries

    (@davidvongries)

    Hi @larslemming,

    Are you referring to only the menu (saying you’d like to keep the logo) or would you want to remove the entire header basically?

    For the first option, you can use a little bit of CSS to hide the menu:

    
    .wpbf-menu-container {
        display: none;
    }

    In case you’re trying to remove the header entirely, you can use this piece of code:

    
    function prefix_your_function() {
        remove_action( 'wpbf_header', 'wpbf_do_header' );
    }
    add_action( 'wp', 'prefix_your_function' );

    Best,
    David

    Thread Starter Lars.Lemming

    (@larslemming)

    Thank you David, the above advice is very much appreciated, though I noticed that there was no text saying “Add menu” once I had uploaded the page to a remote server where I could view it without being logged in to WordPress!
    However, what I would love to be able to do is to place the social media icons (Facebook, Youtube, Twitter, Instagram etc.) in the location where the menu would normally be – next to the logo, so that the logo is aligned to the left and the social media icons is aligned to the right!
    Is this possible?
    You can view the page on https://www.hjertestarterskabe.dk – though it is in Danish ??

    Theme Author David Vongries

    (@davidvongries)

    Hi @larslemming,

    the “Add Menu” link is only shown to logged-in users.

    Yes, that’s possible! ??

    You can use our Custom Sections feature (part of the Premium Add-On – https://wp-pagebuilderframework.com/docs/custom-sections/) to assign the [social] shortcode to one of the hooks inside the navigation or do it via custom code.

    Here’s an example:

    function prefix_your_function() {
        do_shortcode( '[social]' );
    }
    add_action( 'wpbf_main_menu_open', 'prefix_your_function' );
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Remove the menu’ is closed to new replies.