Submenu of dropdown not appearing adjacent to the parent.

Solved

Submenu of dropdown not appearing adjacent to the parent.

RyanSewVac
Visitor
3 0 0

Theme: C2 (I believe)

 

 

Hi! On my website Sewing Machines | Ryan's Sewing and Vacuum Center (ryansewnvac.com),

When I hover over the navbar items everything works perfectly. When I hover over the drop-down items that contain a submenu (in my case the accessories drop down) the submenu appears directly underneath my navbar. I've messed around in the inspect because I am more familiar with vanilla html and css. However, the solutions I came up with inspect I was unable to apply to the actual theme as I couldn't find where the submenu classes were. Any help and suggestions would be much appreciated!

Accepted Solution (1)
parth_ghelani
Shopify Partner
225 32 30

This is an accepted solution.

Hello @RyanSewVac 

I got it and try to make it as you want it to.

you just need to follow below steps:

1. Go to admin > Online store > Edit code.

2. In code directory, find the file named "Custom.css" and open it.

3. Copy below mentioned code and paste it at top of the file.

@media only screen and (min-width: 799px) {
  .navbar-dropdown .has-submenu .navbar-submenu {
    height: 0;
    transition: height 0.5s ease-out;
  }
  .navbar-dropdown .has-submenu:hover .navbar-submenu 
  {
    position: relative !important;
    left: 0 !important;
    height: auto !important;
    transition: height 0.5s ease-in;
  }
  .has-submenu:hover .icon.header__menu_dropdown svg {
	 transform: rotate(-180deg);
  }
}

4. Don't forget to save the file after making changes.

Hope this solution works better for your issue.

 

Was your question answered? Mark it as an Accepted Solution.
If you need further assistance to optimize your store, please don't hesitate to reach out. I'm committed to providing you with my full support and ensuring that you get the most out of our collaboration.

Get in Touch: You can contact me directly at softkarts@gmail.com for any questions or concerns

View solution in original post

Replies 4 (4)

parth_ghelani
Shopify Partner
225 32 30

Hello @RyanSewVac 

Can you please share the actual screenshot ? that how you want it to look like, so i can check and find the issue.

Was your question answered? Mark it as an Accepted Solution.
If you need further assistance to optimize your store, please don't hesitate to reach out. I'm committed to providing you with my full support and ensuring that you get the most out of our collaboration.

Get in Touch: You can contact me directly at softkarts@gmail.com for any questions or concerns
RyanSewVac
Visitor
3 0 0

Hi here is the screenshot of what it is doing now

RyansHelp.png.

This is what I able to get using the inspect tool and messing with the css.

 Ryans help 2.png

 

This is what I want it to look like however I am only able to make it look like this by manually setting the spacing in the css. Ryans help 3.png

Unfortunately, none of the solutions I tried would affect anything when I tried to change it in the actual site.

parth_ghelani
Shopify Partner
225 32 30

This is an accepted solution.

Hello @RyanSewVac 

I got it and try to make it as you want it to.

you just need to follow below steps:

1. Go to admin > Online store > Edit code.

2. In code directory, find the file named "Custom.css" and open it.

3. Copy below mentioned code and paste it at top of the file.

@media only screen and (min-width: 799px) {
  .navbar-dropdown .has-submenu .navbar-submenu {
    height: 0;
    transition: height 0.5s ease-out;
  }
  .navbar-dropdown .has-submenu:hover .navbar-submenu 
  {
    position: relative !important;
    left: 0 !important;
    height: auto !important;
    transition: height 0.5s ease-in;
  }
  .has-submenu:hover .icon.header__menu_dropdown svg {
	 transform: rotate(-180deg);
  }
}

4. Don't forget to save the file after making changes.

Hope this solution works better for your issue.

 

Was your question answered? Mark it as an Accepted Solution.
If you need further assistance to optimize your store, please don't hesitate to reach out. I'm committed to providing you with my full support and ensuring that you get the most out of our collaboration.

Get in Touch: You can contact me directly at softkarts@gmail.com for any questions or concerns
RyanSewVac
Visitor
3 0 0

Thank you I appreciate it!