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 » Page & Category Menu Bars »

Custom Category Menu?


  #1  
Old May 27, 2010, 07:42 AM
frankenkat
 
1 posts · May 2010
I am trying to help a friend make a custom category menu appear like this:

About page:
Page Menu: Home | ABOUT | Services | Tips| Contact
Cat Menu: History | People | Non Profit |

Services page:
Page Menu: Home | About | SERVICES | Tips| Contact
Cat Menu: Repair | Sales | Consulting | Writing

Is it possible to have a custom Category Menu Based on the particular page you are on?
  #2  
Old May 28, 2010, 06:30 AM
juggledad's Avatar
juggledad
 
23,667 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
you would have to hard code the CAT menu twice. Then you could use CSS to only display the one you want on a particular page.

I'd put %cats in the header area and then look at the generated code and copy it (why rebuild the wheel). Then you can use this as the basis for your two hand crafted catmenu's. Make sure to give teh main <div> a unique ID for each like "about_cat" and "service_cat". Then you substitute your handcrafted menu for teh %cat.

Next in the CSS Inserts you could use
HTML Code:
#about_cat {display:none;};
#service_cat {display:none;};
body.page-id-3 #about_cat {display:block !important;};
body.page-id-45 #service_cat {display:block !important;};
This assumes that the page ID for the about page is '3' and the ID for the service page is '45'. This will only display the category menu on those two pages.
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Changing category order in category menu bar, not in sidebar cat. list paulae Page & Category Menu Bars 13 Mar 30, 2011 05:36 PM
How do I highlight active category on a combined page & category menu bar? samij0 Page & Category Menu Bars 0 Mar 11, 2010 01:37 PM
'Read More' not displaying on custom category-posts-in-a-page maija Excerpts, Read more, Pagination 2 Mar 8, 2010 04:29 PM
Tip for creating custom headers for category pages paulae Sidebars & Widgets 0 Dec 9, 2009 04:31 PM
Create new category bar with custom includes backstpub Page & Category Menu Bars 0 Aug 25, 2009 04:32 PM


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


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