Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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, 06: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, 06:08 AM
juggledad's Avatar
juggledad
 
23,765 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, 01:12 PM
alnitak
 
10 posts · Sep 2010
What if I'm using the wp 3.0 menu system?
  #4  
Old Sep 8, 2010, 03:00 PM
lmilesw's Avatar
lmilesw
 
10,176 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, 07: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, 08:43 PM
lmilesw's Avatar
lmilesw
 
10,176 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, 07:58 AM
alnitak
 
10 posts · Sep 2010
Larry,

Perfect! You da man.

Pete
  #8  
Old Sep 9, 2010, 08:02 AM
lmilesw's Avatar
lmilesw
 
10,176 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



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


All times are GMT -6. The time now is 05:22 PM.


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