[SOLVED] Remove menu(s) from custom template
Using ATA 3.5.3 and current version of Wordpress.
The site I am working on uses the page menu and cat menu (wp-menu system) on the static front page only (the cat menu is being used as a second page menu). All other pages use a sidebar menu. There is no blog page or posts... only pages. My client wants a "template" for future pages. I created a page template using the index.php and just gave it a unique name. The problem is... the template calls the page and cat menu and I don't want the client to have to use the custom css codes to eliminate the menu(s) every time they create a new page. What php code would I place in the custom template to remove both menus? Thanx in advance for any help. Here is the template code: Code:
<?php |
First thing I would do is upgrade to 3.7.7 and make sure every thing is working. The index.php has changed so the templates will have to change too.
|
Thanks for replying.
I do not want to upgrade from 3.5.3. There are quite a few custom widgets in use along with a ton of custom css. The client wanted their original site replicated with a few functionality and layout tweaks. Old site - http://www.securitypest.com/ New site - http://securitypest.wordpressproservices.com/ I have been using 3.5.3 for a while now and it is easier to just cruise through it rather than getting used to a new version, applying fixes, etc. I was hoping someone might know the proper php to simply remove the menus from the template. |
you could always add some CSS and key off the 'body.templatename' and then the menu you want to hide with a 'display:none;'
|
PERFECT!
I should have thought of that. Thanks Juggledad. Here is what I did - I added this to the css inserts... Code:
body.page-template.page-template-town-template-php #menu1 {display:none} |
All times are GMT -6. The time now is 08:21 PM. |
Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.