How to create secondary menu
-
How do I create a secondary menu for the twenty ten theme? I know I cannot be that difficult I just need to be pointed in the right direction.
Thanks
-
Don’t edit the Twenty Ten theme. Your changes will be over-written the next time you upgrade WordPress or the theme. For this reason, it is recommended that you consider creating a child theme for your customisations.
Once your child theme is active, you need to create a new sidebar template file and start adding calls to the new sidebar to other template files as required.
Its the twenty ten theme, I just copied it to a new folder and renamed it to a custom name. I dont know if thats the same as making a child theme, but thats what I did.
It’s not the same and doesn’t have quite the same longer term benefits as making a child theme but at least your customisations won’t be over-written.
You need to start by creating a new sidebar template file (eg sidebar-two.php)
I figured out how to make a secondary menu using the functions.php file. But how would I tell wordpress to put an id element on the last menu item so I can NOT show a border on the last button? I would want it to do this to both menus, the primary and the secondary.
Ex: http://rbrmx.com/rbr/index1.php (nav bar in the header and footer)
If I can view examples I can normally figure this out, but I have yet to find an example.
Try putting a border-left on each menu link then remove the link on the first item using the :first-child CSS pseudo selector.
esmi. you are the guru.period.
Glad I could help 🙂
The topic ‘How to create secondary menu’ is closed to new replies.