![]() |
Drop down menu
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 |
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 |
Quote:
Here I take it you are talking about the themes functions.php Yes? |
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 |
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. |
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 |
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. |
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 |
All times are GMT -5. The time now is 01:10 PM. |
Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.