Change width of submenu to full width of page?

Change width of submenu to full width of page?

NielsSchutte
Explorer
168 2 12

Hi,

I'm trying to create a menu like this:

example.png


 

What I've got now:

whatigot.png

 

Is there a way to accomplish this without using an licensed application and just code it in html/css?

My requirements:

1. Sub-menu has to be full width(look first image)

2. I want to add headers with link-lists below
3. I like to add a image next to these link-lists

Hope someone can give me an answer.

Niels

Replies 8 (8)

PageFly-Richard
Shopify Partner
4991 1117 1796

Provide me your store URL, I will give you an instruction

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


All features are available from Free plan. Live Chat Support is available 24/7.

NielsSchutte
Explorer
168 2 12

Hello,

URL is: smartsnutrition.myshopify.com or www.smartnutrition.nl

Password: plazay

 

Thanks for the effort!:)

Niels

PageFly-Richard
Shopify Partner
4991 1117 1796

Use this custom CSS code

.site-nav>li.site-nav--has-dropdown {
	position: static;
}
.site-nav>li.site-nav--has-dropdown .site-nav--dropdown {
	top: initial;
	width: 1030px;
	left: calc(50% - 515px);
	display: grid;
	grid-template-columns: repeat(4, 1fr);
}
.site-nav>li.site-nav--has-dropdown > a {
	font-weight: bold;
}
.site-nav>li.site-nav--has-dropdown .site-nav--dropdown-grandchild {
	position: relative;
	opacity: 1;
	left: 0;
	border: 0;	
}

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


All features are available from Free plan. Live Chat Support is available 24/7.

NielsSchutte
Explorer
168 2 12

Looks good but not exactly what I mean, with the code u written I've got the following:

Naamloos.png

 

What I'm trying to create is:

Naamloos.png

 

So I'm trying to put 2 sub-menu's below eachother and next to these submenus I want to display an image(banner of products). Is this possible

Thanks for the effort!

Niels

PageFly-Richard
Shopify Partner
4991 1117 1796

If you have more than 4 sub-menu items, it will display exactly like your image

Please let me know if it works by giving it a Like or marking it as a solution!


➜ Optimize your Shopify store with PageFly Page Builder (Free plan available) 


All features are available from Free plan. Live Chat Support is available 24/7.

NielsSchutte
Explorer
168 2 12

Isnt is possible with 2 sub-menu items? And how do I insert a image into the sub-menu? I've got this so far:

Naamloos.png

 

And what I'm trying to get is(for example - can be more or less sebmenu's):

 

Naamloos.png

rajeshNekkanti
New Member
5 0 0

Hi there, I'm having menu like same but having a error in that while we load the page mega menu is flickering 

site url: https://2aptqmk860j4gkb9-14705360950.shopifypreview.com 

 

ysocial
Visitor
1 0 0

Hi Richard,

 

Which file need to be modified to add this code?