• Resolved erwin_m

    (@erwin_m)


    I’ve bin trying to create a horizontal submenu in the Twenty ten theme, but it seems like nothing I try works. I’ve bin changing the floats and the display inline.

    Can anybody give me a clue?

    Thanks already!

Viewing 10 replies - 1 through 10 (of 10 total)
  • Don’t edit the Twenty Ten theme. Instead create a child theme for your changes. Once your child theme is active, we should be able to help with the customisation.

    Why not replicate the code & CSS using different classes from the main horizontal menu in your child theme?

    Thread Starter erwin_m

    (@erwin_m)

    Ok, so I created a child theme, but….I also created multiple header.php so I could create a total different homepage. Does this still work as I point in the header.php’s to different style sheets?

    And for the rest of your reaction, you are going a bit to fast for my knowledge. Must I copy the total menustructure and change the classes? And repeat this in style.css?

    If you want your new menu to appear on all pages, then – yes – you’ll need to add it to all of your custom header.php files.

    Must I copy the total menustructure and change the classes? And repeat this in style.css?

    In essence, yes. It’s probably the easiest option but you’ll need to change any ids and tweak the new/added CSS to avoid any conflicts with the existing menu.

    Thread Starter erwin_m

    (@erwin_m)

    Can I do this by adding sb (short for sub) to each class and ID?

    Yep – that should work.

    Thread Starter erwin_m

    (@erwin_m)

    Ok, may be I’m crazy, very possible, but the code beneath is already for a submenu, doesn’t it? Of course it’s just a part of it.

    #access ul ul li {
    	min-width: 160px;
    }

    It’s for the child dropdowns.

    Thread Starter erwin_m

    (@erwin_m)

    So for the dropdowns of the dropdowns? Is that correct? Sorry for my stupidity ;).

    I think so, yes.

    Thread Starter erwin_m

    (@erwin_m)

    Thanks for thinking with me. I’ve got the base working. Setting the width for the ul en li in the correct way was the solution.

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘Horizontal submenu to Twenty ten’ is closed to new replies.