Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Montezuma Theme (http://forum.bytesforall.com/forumdisplay.php?f=53)
-   -   [SOLVED] Remove menu from frontpage (http://forum.bytesforall.com/showthread.php?t=18980)

MorkVonOrk Nov 27, 2012 07:31 AM

[SOLVED] Remove menu from frontpage
 
I'd like to have a Wordpress-frontpage without a menu in the Montezuma-theme.

I tried to edit the header.php sub-template like
Quote:

<?php if ( !is_front_page() ): {
wp_nav_menu( .....existing code .....
?>
But the php-code is not parsed and appears as text at the beginning of the header.
Tried the internal and an external editor....

What am I doing wrong ? Is there another approach ?

Thanks in advance.
Mork

lmilesw Nov 27, 2012 01:14 PM

I believe you can create a home.php or front-page.php depending on whether your front page is latest blog posts or a designated page and edit that template by taking out the get header line and replacing with all that is in header.php. Then remove the code that calls the menu.

MorkVonOrk Dec 1, 2012 10:01 AM

Thanks a lot for your reply. Worked like a charm !


All times are GMT -6. The time now is 01:54 AM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.