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 »

Combining Category & Pages menu


  #1  
Old Jan 29, 2009, 09:21 PM
Masselyn
 
91 posts · Jan 2009
So. California
Hello :

First, I want to say this has got to be the best theme out there. Customization is a joy, not to mention often a breeze. I do have one question, and forgive me if this was posted elsewhere (I looked...but that doesn't mean I didn't miss it). Is there a way to combine the two menus into one? I would like to have a category choice on the menu, which drops down and shows the categories...and then continue to have my pages, home, and other links.

Just wondering....thanks.

Masselyn.
  #2  
Old Jan 30, 2009, 05:53 AM
Flynn's Avatar
Flynn
 
3,768 posts · Oct 2008
Munich, Germany
This may lead to unexpected results, I have not tested it

In functions/bfa_header_config.php, line 22, find

PHP Code:
$page_menu_bar .= bfa_hor_pages($bfa_ata_sorting_page_menu_bar$bfa_ata_levels_page_menu_bar$bfa_ata_titles_page_menu_bar$bfa_ata_exclude_page_menu_bar); 
and add this right after it (or right before it, to have the category links on the left):
PHP Code:
$page_menu_bar .= bfa_hor_cats($bfa_ata_sorting_cat_menu_bar$bfa_ata_levels_cat_menu_bar$bfa_ata_titles_cat_menu_bar$bfa_ata_exclude_cat_menu_bar); 
At Atahualpa Theme Options -> Header add only the page menu bar (%pages)

At Atahualpa Theme Options -> Page Menu Bar configure options for the menu tabs that are pages, and visual styles for all menu tabs

At Atahualpa Theme Options -> Category Menu Bar configure options for the menu tabs that are categories. The visual styles will be covered by the settings of Page Menu Bar

Last edited by Flynn; Jan 31, 2009 at 05:16 AM. Reason: Updated to point out that the Page Menu Bar settings will cover the VISUAL styles for the category menu tabs as well
  #3  
Old Jan 30, 2009, 10:17 AM
Masselyn
 
91 posts · Jan 2009
So. California
Absolutely wonderful! Thank you so much for the quick reply, as well as the great advice. I will test it across browsers, to make sure it is stable. Very cool!
  #4  
Old Mar 4, 2009, 12:07 PM
bcorrigan
 
85 posts · Feb 2009
What I did for the left menu bar was to create a text Widget and add
Template tags, wp_list_pages() & wp_list_categories (), with options and put them in an unordered list. This technique doesn't involve editing Flynn's great pages, so when you update your theme, you'll won't have to worry about over-writing the .php files.
You then style the list in the Widget section of Atahualpa Theme options.

More information about these tags are at: http://codex.wordpress.org/wp_list_pages, and http://codex.wordpress.org/Template_...ist_categories.

Here's my code in a text widget in the left sidebar.
<ul>
<?php wp_list_pages('sort_column=menu_order&include=3,7, 267,585&title_li='); ?>

<?php wp_list_categories('orderby=ID&exclude=145,211,215 ,230,240,260,265,270,280,290,295&title_li='); ?>

<?php wp_list_pages('sort_column=menu_order&include=2,10 1,667&title_li='); ?>

</ul>
  #5  
Old Mar 22, 2009, 11:03 AM
markus
 
6 posts · Feb 2009
hi.
it seems it has to be a php-text widget.
with the pure text widget it did not work.
i found one here: http://wordpress.org/extend/plugins/php-code-widget/
cheers markus
  #6  
Old Jun 14, 2009, 09:46 AM
molge
 
1 posts · Jun 2009
Quote:
Originally Posted by Flynn
This may lead to unexpected results, I have not tested it

In functions/bfa_header_config.php, line 22, find

PHP Code:
$page_menu_bar .= bfa_hor_pages($bfa_ata_sorting_page_menu_bar$bfa_ata_levels_page_menu_bar$bfa_ata_titles_page_menu_bar$bfa_ata_exclude_page_menu_bar); 
and add this right after it (or right before it, to have the category links on the left):
PHP Code:
$page_menu_bar .= bfa_hor_cats($bfa_ata_sorting_cat_menu_bar$bfa_ata_levels_cat_menu_bar$bfa_ata_titles_cat_menu_bar$bfa_ata_exclude_cat_menu_bar); 
At Atahualpa Theme Options -> Header add only the page menu bar (%pages)
This works fine for me, the categories pops up in the menu. Just one thing doesnt work, the highlight of the category when you clicked on it. This works with pages, if you go to a page lets say "about" then "about" is highlighted, but if you go to a category-menu-textlink lets say "fruits", then "fruits" is not highlighted.

Is there any solution to this?

/molge
  #7  
Old Jul 24, 2009, 10:11 AM
hamcake
 
2 posts · Jul 2009
I have used this method to combine the page and category menus, works fine - except - the category menu items are no longer listed in the order that I specified using the My Category Order plugin. Also, the categories that I specified to be excluded from the menu bar (uncategorized, etc) are still showing up.

Any ideas?
  #8  
Old Jul 25, 2009, 01:16 PM
hamcake
 
2 posts · Jul 2009
Also, now that the menus are combined it seems the ATO settings for the category bar are ignored - I'd like to be able to restrict the submenu level but at the moment it is showing everything.
  #9  
Old Aug 4, 2009, 05:52 PM
Puck
 
4 posts · Aug 2009
*bump*
I think this is a great solution, but I have the same issues with 'My Category Order'. Has anyone come up with a solution for this? Thanks a lot!
  #10  
Old Aug 4, 2009, 06:13 PM
Puck
 
4 posts · Aug 2009
update: i didn't fix the problem, but i found an acceptable workaround.
the categories appear in the order in which they were created, so i just created doubles of my categories (in the order in which i wanted them to appear), and transferred my subcategories & posts to the new (properly-ordered) categories. only took a couple of minutes.
  #11  
Old Feb 27, 2010, 04:28 PM
Whatsthatcat?
 
25 posts · Mar 2009
Quote:
Originally Posted by Flynn
This may lead to unexpected results, I have not tested it

In functions/bfa_header_config.php, line 22, find

PHP Code:
$page_menu_bar .= bfa_hor_pages($bfa_ata_sorting_page_menu_bar$bfa_ata_levels_page_menu_bar$bfa_ata_titles_page_menu_bar$bfa_ata_exclude_page_menu_bar); 
and add this right after it (or right before it, to have the category links on the left):
PHP Code:
$page_menu_bar .= bfa_hor_cats($bfa_ata_sorting_cat_menu_bar$bfa_ata_levels_cat_menu_bar$bfa_ata_titles_cat_menu_bar$bfa_ata_exclude_cat_menu_bar); 
At Atahualpa Theme Options -> Header add only the page menu bar (%pages)

At Atahualpa Theme Options -> Page Menu Bar configure options for the menu tabs that are pages, and visual styles for all menu tabs

At Atahualpa Theme Options -> Category Menu Bar configure options for the menu tabs that are categories. The visual styles will be covered by the settings of Page Menu Bar
Hey Flynn! Great theme, I was wondering if you could take a look at my site, I have combined the categories into the page menubar as you instructed above, but suddenly it displays "no categories" after the pages. Like it says those words.

http://www.rogersayre.com/

Thanks for all your help!
  #12  
Old Feb 28, 2010, 11:09 AM
juggledad's Avatar
juggledad
 
23,630 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
what version of Atahualpa and WP?
Where (what line number) did you add the code?

in 3.4.6 try using this instead
HTML Code:
	$page_menu_bar .= bfa_hor_cats($bfa_ata['sorting_cat_menu_bar'], $bfa_ata['order_cat_menu_bar'], 
	$bfa_ata['levels_cat_menu_bar'], $bfa_ata['titles_cat_menu_bar'], $bfa_ata['exclude_cat_menu_bar']);
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Last edited by juggledad; Feb 28, 2010 at 11:13 AM.
  #13  
Old Mar 2, 2010, 05:07 PM
Whatsthatcat?
 
25 posts · Mar 2009
I'm using WP 3.4.6 and Atahualpa 3.4.6 also. Juggledad, I added what you suggested and it fixed the issue! In 3.4.6 it's line 43 where you would add it, FYI.

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
[SOLVED] Change footer background on &quot;Page&quot; pages only Unca_Tim Post-Kicker, -Byline & -Footer 22 Jun 4, 2009 12:45 PM
Category description & category classes shedhed Page & Category Menu Bars 4 Mar 22, 2009 01:25 AM
[SOLVED] How should top level &quot;button&quot; work on a menu bar? Shepherd Jim Page & Category Menu Bars 2 Mar 14, 2009 02:30 PM
Category & Date archives Cosmic Comix & Toys Forum How-To 1 Mar 8, 2009 05:15 AM


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


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