-
AuthorPosts
-
April 2, 2018 at 2:22 am #935859
Hi,
I would like to split my menu – Menu & Search to the left. Account & Basket to the right. Logo to stay central.
Can you please help with the CSS to achieve this?
Many thanks
Luke
April 2, 2018 at 6:28 am #935905April 2, 2018 at 11:41 am #936008Hi,
The logo centre, split menu is roughly what I need however if you see the following site:
The Menu and search icon are the left of the header, the logo is central and the account details are to the right of the header.
Please advise.
Many thanks
April 2, 2018 at 6:51 pm #936157Hi,
Please try adding this code to the Quick CSS section under Enfold > General Styling or to your child theme’s style.css file:
.main_menu,.av-main-nav-wrap { width: 100%; } #top #menu-item-search, li#menu-item-439 { float: right; }
and you can then set your logo as header background image and choose center center position with no repeat :)
Best regards,
YigitApril 2, 2018 at 10:08 pm #936209Hi Yigit,
Thanks for the help. Can you please review my website and advise how I can swap the search icon and the account icon? AAlong with adding a spacing line after what will be the seach icon but is currently the account?
Many thanks,
Luke
April 3, 2018 at 3:47 pm #936622Hi,
To swap the icons please use the below CSS code.
You can change the order number to the icons to move their position. Please feel free to remove the background color property it is used only to show visual reference.
#avia-menu { display:flex; } #avia-menu li:nth-child(1) { background:red; } #avia-menu li:nth-child(2) { order: 4; background:lightgreen; margin-left:auto; } #avia-menu li:nth-child(3) { order: 4; background:gold; } #avia-menu li:nth-child(4) { background:cyan; }
Best regards,
VinayApril 3, 2018 at 4:10 pm #936632Hi Vinay,
Brilliant, thanks for the help. Can I ask how to add a line on the right of the basket to make it match the left hand side?
Many thanks agan
April 4, 2018 at 5:38 am #936919 -
AuthorPosts
- You must be logged in to reply to this topic.