Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
 All Forums
 Technical
 PHP (Unix / Linux / Apache) versions
 Drop Down Menu Break Point
Author « Topic »  

RJB
Ecommerce Template Expert

United Kingdom
801 Posts

Posted - 06/03/2024 :  12:22:08  
Hi, I'm trying to tweak the drop-down menu so it shows in desktop format on ipad screens (703/768px). It currently switches to mobile display at 940px and I can change this in ectcart.css, but as there are quite a few CSS settings I wondered if there was an easy way to override these in my stylesheet to make this change updater-proof? Also, I noticed that the hover dropdown effect stops working below 950px ..Is there any way to adjust this?

Thanks,
Richard.

Vince
Administrator

43022 Posts

Posted - 06/04/2024 :  05:14:16  
Hi Richard
quote:
but as there are quite a few CSS settings I wondered if there was an easy way to override these in my stylesheet to make this change updater-proof?
The way to make changes like this is not to edit the ectcart.css file which will be overwritten by updaters. But instead, add any changes to your site style sheet and make sure your site style sheet is referenced after the ectcart.css file.

quote:
Also, I noticed that the hover dropdown effect stops working below 950px ..Is there any way to adjust this?
This would be controlled by settings such as this...

@media (max-width: 940px) {
.ectmegamenu > ul {
display: none !important;
}
}

You would probably need to add something to your style sheet to override that and then to set it for the new width. For instance...

@media (max-width: 940px) {
.ectmegamenu > ul {
display: block !important;
}
}
@media (max-width: 768px) {
.ectmegamenu > ul {
display: none !important;
}
}

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater

RJB
Ecommerce Template Expert

United Kingdom
801 Posts

Posted - 06/04/2024 :  05:44:33  
Hi Vince, Thanks for your reply. This solves part of the problem, but the dropdown effect when you hover over the menu stops working when the screen is slightly wider than the current 940px break point and this doesn't change when I alter the css. Can you let me know what is controlling this hover / dropdown effect?

Richard.

Vince
Administrator

43022 Posts

Posted - 06/04/2024 :  10:38:56  
Hi Richard
Maybe the easiest way to see what settings affect this is to open the file ectcart.css in notepad and search for "940px" and this should take you to the breakpoint settings.
If you search for, "ectmegamenu" below that you should see the settings that are made for the mega menu at the 940px breakpoint and I would imagine you would want to redefine those for your 768px breakpoint.

Vince

Click Here for Shopping Cart Software
Click Here to sign up for our newsletter
Click Here for the latest updater
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.02 seconds. Snitz Forums 2000