Tagged: navigation menu
- This topic has 7 replies, 2 voices, and was last updated 11 years, 1 month ago by Sanjip Shah.
-
AuthorPosts
-
September 19, 2013 at 8:34 am #4064adrianParticipant
hi guys,
I need some help regarding the navigation menu: I want to display the 1st level menu items horizontally instead of vertically (the default), as detailed lower:
Main Menu: home Item1 Item2 Item3
When hovering Item1 it should display a horizontally list like: Subitem1 Subitem2 Subitem3
instead of the vertically default one: Subitem1
Subitem2
Subitem3Can you point a link or something to read suitable for a beginner in coding?
This is the setup:
– child theme
– one modification in the child theme style sheet: centered menu items using one of your previous answered topics
https://www.themehorse.com/support-forum/topic/center-align-for-menu/In this menu will be only 1st level items, no future children items.
Thanks for the theme and for your support,
September 20, 2013 at 7:26 am #4088Sanjip ShahParticipant@adrian Can you provide a link to your site?
September 20, 2013 at 1:35 pm #4092adrianParticipantSorry, I’m using WampServer, so all the customization takes places on my pc.
🙁 can I help in a other way?
September 24, 2013 at 7:19 am #4153Sanjip ShahParticipant@adrian Try the following css. In the dashboard, go to Appearance->Theme Options->Design Options tab->Custom CSS. Paste the following css and click on ‘Save all Changes’.
#access ul li ul { width: 600px; } #access ul li ul li { float: left; }
September 24, 2013 at 9:39 am #4155adrianParticipant🙂
worked like a charm!
thank you Sanjip!
I’m interested in adding a functionality to the attitude free theme I’m using – I’ll just send the enquiry to the paid support section of your contact page
September 25, 2013 at 7:12 am #4173Sanjip ShahParticipant@adrian Okay. Great! Yes you can send the mail, our pad support team will look into it. Thanks.
September 25, 2013 at 5:19 pm #4189adrianParticipantcheers Sanjip!
I was tinkering with the code you provided in order to make further adjustments – start the box with the child menu items right under the first main menu item (instead of it’s ancestor as it is now).
The only thing I managed to do was to re-position the container a little bit to left by simply adding the line in italic
#access ul li ul { position: absolute; /* in the parent theme style sheet */ <em>left:-200px;</em> width: 978px; /* 600px in your original code; modified for testing */ } #access ul li ul li { float: left; }
Of course, this re-positioning is actually relative to each parent menu item. I’ve read and tried some tutorials about css position but I wasn’t able to do it.
Should it be done with “position: relative;” instead of “absolute”?
Thanks,
AdrianP.S. I’ve sent that mail to the paid support team, unfortunately because it was related to the use of woo commerce it can’t be solved by them now, as woo is not supported currently; maybe next time I will be lucky.
September 26, 2013 at 7:14 am #4206Sanjip ShahParticipant@adrian The position related css can really be complex specially in the navigation areas. I think you will help to hire a developer on this one to adjust the menu part perfectly. Thanks.
-
AuthorPosts
- You must be logged in to reply to this topic.