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?
Landing pages without the header section?
4 posts from 3 voices-
Posted 5 months ago #
-
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,
IsmaelPosted 5 months ago # -
Ismael, I tried your code and I'm still seeing the main menu on my landing pages. Any ideas?
Posted 5 months ago # -
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
Posted 5 months ago #
Reply
You must log in to post.














