![]() |
|
Home | Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
Thread Tools | Search this Thread | Display Modes |
#1
|
|||
|
|||
![]() Store 35251
urLhttp://www.chinawholesalectronics.com/ The theme is the socrates theme. What I like to do is attach a drop down menu of all the categories to the primary (main) wordpress navigation bar. Searching I found what you do in the twenty ten theme but was wondering what I could do for my theme. Many thanks |
#2
|
||||
|
||||
![]() Hi,
As long as your theme references the wp_nav_menu() function, this method will also work for you. If it does not work, you will need to ask the theme developer how to hook into the menu function. Eric
__________________
![]() ![]() ![]() ![]() |
#3
|
|||
|
|||
![]() Quote:
Here I take it you are talking about the themes functions.php Yes? |
#4
|
|||
|
|||
![]() Quote:
Only thing I can find in the themes functions.php is this line require_once($functions_path . 'menus.php'); // Menus WP 3.0 And the last entries in that file are Code:
// Hook into the 'wp_dashboard_setup' action to register our other functions add_action('wp_dashboard_setup', 'add_socrates_dashboard_widget'); function customize_meta_boxes() { //retrieve current user info global $current_user; get_currentuserinfo(); //if current user level is less than 3, remove the postcustom meta box if ($current_user->user_level < 10) remove_meta_box('socrates_dashboard_widget', 'dashboard', 'normal'); } add_action('admin_init', 'customize_meta_boxes'); |
#5
|
|||
|
|||
![]() Okay it appears that function file has no closing tag for whatever reason as it must be calling other files to close the tag.
Anyways I added your code to the bottom of the functions file and added the category list and see what happened. http://www.chinawholesalectronics.com/ Now how it looks and works is not a bad thing for me but be nice to know how to change it to a drop down menu. |
#6
|
||||
|
||||
![]() Hi,
Everything is working as expected. What do you mean change it to a drop down menu? All of your categories are parent categories therefore there's no hierarchy. Eric
__________________
![]() ![]() ![]() ![]() |
#7
|
|||
|
|||
![]() Quote:
So in esscence if I created an empty category with some name (Like Electronics) and shifted everything under it then they would all appear under that one category whatever it was named on the menu bar, correct. |
#8
|
||||
|
||||
![]() Hi
Yes, but I don't recommend that. If you want all of your categories to appear under 1 link in your menu, try this: /show...1913#post21913 Eric
__________________
![]() ![]() ![]() ![]() |
Thread Tools | Search this Thread |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Drop down menu problems | digitalcow | Problems | 11 | December 18th, 2012 11:09 AM |
Change width of drop down menu | fsuggest | Questions | 4 | April 29th, 2012 10:40 AM |
Need help on Drop down Menu for Brand filter | jdrom | Questions | 3 | March 29th, 2012 07:17 PM |
drop down menu | Papada | Questions | 1 | January 4th, 2012 02:24 PM |
No drop down menu in new factory | marcaustin | Problems | 15 | March 10th, 2011 02:36 PM |