• Resolved JProductions

    (@jproductions)


    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

Viewing 7 replies - 1 through 7 (of 7 total)
  • esmi

    (@esmi)

    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.

    Thread Starter JProductions

    (@jproductions)

    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.

    esmi

    (@esmi)

    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)

    Thread Starter JProductions

    (@jproductions)

    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.

    esmi

    (@esmi)

    Try putting a border-left on each menu link then remove the link on the first item using the :first-child CSS pseudo selector.

    Thread Starter JProductions

    (@jproductions)

    esmi. you are the guru.period.

    esmi

    (@esmi)

    Glad I could help 🙂

Viewing 7 replies - 1 through 7 (of 7 total)

The topic ‘How to create secondary menu’ is closed to new replies.