Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme » Header configuration & styling »

removing category menu in wp 3.0


  #1  
Old Sep 8, 2010, 07:00 AM
alnitak
 
10 posts · Sep 2010
Greetings,

It looks like one could edit the bfa_header_functions.php file to check if is_home() and display the category menu (menu 2) from the wordpress menu only if the page is the home page. I'm no php coder, so I can't seem to make it work. Anyone out there care to show me how to code this?

Pete
  #2  
Old Sep 8, 2010, 07:08 AM
juggledad's Avatar
juggledad
 
23,682 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
If you don't want the menu, just remove %cats from the header configuration option
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support
  #3  
Old Sep 8, 2010, 02:12 PM
alnitak
 
10 posts · Sep 2010
What if I'm using the wp 3.0 menu system?
  #4  
Old Sep 8, 2010, 04:00 PM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
Can you please clarify what you are trying to do.

Do you want no category menu or only have a category menu on the home page? If you are using the WP 3 menu are you going to use two separate menus or combine categories and pages on the same menu?
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #5  
Old Sep 8, 2010, 08:53 PM
alnitak
 
10 posts · Sep 2010
Larry,

Using the WP 3.0 category menu, that I've set up as menu 2 in the menu tab of the administrator, I want to display that menu only on the blog page of the site. I have a static homepage, with the blog page set as the "homepage" for posts. It seems to me that I could include a conditional statement using if (is_homepage) to display the menu only on that "homepage". Exactly which statement paints the menu in the bha_header_functions.php file? If I knew that, I could then test is_homepage before executing the command to display menu 2.

Does that clarify what I am trying to do?

Cheers,

Pete
  #6  
Old Sep 8, 2010, 09:43 PM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
Try using the following instead of just %cats
HTML Code:
<?php if( is_home() ) { ?>
%cats
<?php } else { ?>
<?php } ?>
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.
  #7  
Old Sep 9, 2010, 08:58 AM
alnitak
 
10 posts · Sep 2010
Larry,

Perfect! You da man.

Pete
  #8  
Old Sep 9, 2010, 09:02 AM
lmilesw's Avatar
lmilesw
 
10,174 posts · Jul 2009
Central New York State USA
Also you don't really need the <?php } else { ?> in this case so the code could be just
HTML Code:
<?php if( is_home() ) { ?>
%cats
<?php } ?>
__________________
~Larry (CNY Web Designs)
This site should be a membership site since it so full of good stuff.
Please consider donating which gives you access to even more good stuff.

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Removing Uncategoried Category from the Display pkmittal81 Page & Category Menu Bars 2 Apr 16, 2010 08:06 PM
[SOLVED] Removing a Post from the Recent Posts Category Chloe Sidebars & Widgets 3 Mar 17, 2010 02:06 PM
[SOLVED] Removing Time Stamp, Comments and category from post JorgePerez Comments, trackbacks & pings 6 Nov 29, 2009 02:42 PM
[SOLVED] removing sticky post from category page creativeliza Post-Kicker, -Byline & -Footer 10 Nov 10, 2009 04:56 AM
[SOLVED] Removing &quot;Uncategorized&quot; from the category menu? chrisp Page & Category Menu Bars 2 Aug 23, 2009 12:44 AM


All times are GMT -6. The time now is 03:34 PM.


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