Tagged: 

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #17996

    I’m looking at testing a new service using landing pages with “fake doors” but I don’t want the visitor to be able to access the rest of the site with the navigation links in the header menu. Basically, I just want the ability to create a template that excludes everything above the header menu so that I’m starting with a clean slate. How can I accomplish this?

    #97857

    Hi,

    If your intention is to hide the menus you can do some conditional tags. Open header.php and find this code

    echo "<div class='main_menu' data-selectname='".__('Select a page','avia_framework')."'>";
    $args = array('theme_location'=>'avia', 'fallback_cb' => 'avia_fallback_menu');
    wp_nav_menu($args);
    echo "</div>";

    Replace it with

    if ( !is_page( 'Landing Page' ) ) {
    echo "<div class='main_menu' data-selectname='".__('Select a page','avia_framework')."'>";
    $args = array('theme_location'=>'avia', 'fallback_cb' => 'avia_fallback_menu');
    wp_nav_menu($args);
    echo "</div>";
    };

    The code means, if it is not the “Landing Page” echo or render the main menu. You can do the same with the logo.

    Regards,

    Ismael

    #97858

    Ismael, I tried your code and I’m still seeing the main menu on my landing pages. Any ideas?

    #97859

    Hi,

    Please try this

    .header_meta {
    display: none !important;
    }
    .logo.bg-logo {
    display: none !important;
    }
    .main_menu {
    display: none !important;
    }
    #footer {
    display: none !important;
    }
    #socket {
    display: none !important;
    }

    Since I don’t know which page you are trying to apply the style to I can’t target it further. If you know which page, please view the source from your browser and paste the entire body tag here, and I can be more specific with the css

    Thanks,

    Nick

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Landing pages without the header section?’ is closed to new replies.