Post by stephenwales » Tue Sep 24, 2024 11:25 pm

Fairly new to OC and have a question about the major changes to CSS styles when dropping to mobile view, ive attached a product listing on desktop and its equivalent on mobile. WHere are these changes initiated and how can I change the CSS to match?

Attachments

Screenshot 2024-09-24 at 16.22.16.png

Screenshot 2024-09-24 at 16.22.16.png (642.26 KiB) Viewed 761 times


Newbie

Posts

Joined
Wed May 20, 2015 2:32 am

Post by JNeuhoff » Tue Sep 24, 2024 11:37 pm

It's all in the catalog/view/theme/<your-theme>/stylesheet/stylesheet.css

If you need more help then you have to provide more details, see forum rules.

Export/Import Tool * SpamBot Buster * Unused Images Manager * Instant Option Price Calculator * Number Option * Google Tag Manager * Survey Plus * OpenTwig


User avatar
Guru Member

Posts

Joined
Wed Dec 05, 2007 3:38 am


Post by paulfeakins » Wed Sep 25, 2024 6:23 pm

JNeuhoff wrote:
Tue Sep 24, 2024 11:37 pm
It's all in the catalog/view/theme/<your-theme>/stylesheet/stylesheet.css
Specifically, learn about media queries: https://www.w3schools.com/cssref/css3_pr_mediaquery.php

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom

Post by stephenwales » Wed Sep 25, 2024 8:15 pm

All media queries are all set, it is as if something is striping it all away once on mobile? Maybe im missing something very easy!

Newbie

Posts

Joined
Wed May 20, 2015 2:32 am

Post by by mona » Wed Sep 25, 2024 9:05 pm

yes media queries do that - if they are "set" then at an educated guess it is those settings, but of course it could be js.

"My car doesnt work, it has an engine but it doesnt work" - ???

DISCLAIMER:
You should not modify core files .. if you would like to donate a cup of coffee I will write it in a modification for you.


https://www.youtube.com/watch?v=zXIxDoCRc84


User avatar
Expert Member

Posts

Joined
Mon Jun 10, 2019 9:31 am

Post by paulfeakins » Fri Sep 27, 2024 6:09 pm

stephenwales wrote:
Wed Sep 25, 2024 8:15 pm
All media queries are all set, it is as if something is striping it all away once on mobile? Maybe im missing something very easy!
Let's have a link to the site so we can see the code.

UK OpenCart Hosting | OpenCart Audits | OpenCart Support - please email info@antropy.co.uk


User avatar
Legendary Member

Posts

Joined
Mon Aug 22, 2011 11:01 pm
Location - London Gatwick, United Kingdom
Who is online

Users browsing this forum: No registered users and 19 guests