Jump to content

  • You cannot start a new topic
  • You cannot reply to this topic

Change Theme Light - Dark Mode Rate Topic   - - - - -

 
  • allgaguzzi
  • Member
  • Trial users
  • Join Date: 31-Aug 11
  • 18 posts

Posted 23 May 2019 - 01:24 PM #1

Hi,
Is there a way to change cs-cart skin / css from the front end from light to dark?
Kind regards



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19698 posts

Posted 27 May 2019 - 08:10 AM #2

Unfortunately, it is not possible without additional code changes


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • allgaguzzi
  • Member
  • Trial users
  • Join Date: 31-Aug 11
  • 18 posts

Posted 27 May 2019 - 08:22 AM #3

Thank you for the reply.

 

I understand that it will definitely involve the changes in the code.

What I was wondering if anybody knows any add-on, or an existing theme, or an example that supports that feature?
Would that also mean that it would need two layouts, for light and dark?
Would it affect the performance?

 

Kind regards



 
  • eComLabs
  • CS-Cart Expert
  • Authorized Reseller
  • Join Date: 27-Jan 14
  • 19698 posts

Posted 27 May 2019 - 01:15 PM #4

You can create several layouts in the store and assign different styles to them. Then create HTML block with layout switcher. The main idea is to add s_layout=123 to the current URL.  Where 123 - is the layout ID

 

http://prntscr.com/ntxq8o


GET A FREE QUOTE | CS-Cart Add-ons | CS-Cart Licenses | CS-Cart Development | CS-Cart Design | Server Configuration | UniTheme and YOUPI
CS-Cart                USD 345     Multi-Vendor              USD 1250    CS-Cart RU                         24500 руб.
CS-Cart Ultimate  USD 775     CS-Cart + YOUPI      USD 545      CS-Cart RU + UniTheme    36000 руб.


 
  • poppedweb
  • Authorized Reseller
  • Members
  • Join Date: 02-Aug 16
  • 547 posts

Posted 27 May 2019 - 07:32 PM #5

Thank you for the reply.

 

I understand that it will definitely involve the changes in the code.

What I was wondering if anybody knows any add-on, or an existing theme, or an example that supports that feature?
Would that also mean that it would need two layouts, for light and dark?
Would it affect the performance?

 

Kind regards

 

Well, there is this very cool thing called media queries. They are used for a bunch of stuff but now they are also trying to make it more feature rich these days. In windows you can now also select 'dark mode', this would then be passed to the browser as a media query, which would allow you to make your website darker for those having that enabled. The remaining you would have to compatbilize with JavaScript or a server sided alternative.

 

FYI, this would also eliminate the need for multiple layouts.

 

If you need any more information, please don't hesitate to contact us at sales@poppedweb.com


PoppedWeb | sales@poppedweb.com | https://poppedweb.com
TurnKey Website Design | Add-Ons | Performance Audits | Dedicated Server Management
24/7 Support | Response within an hour (during working hours).

 
  • allgaguzzi
  • Member
  • Trial users
  • Join Date: 31-Aug 11
  • 18 posts

Posted 29 May 2019 - 08:23 AM #6

Hi,
Thank you both very much for your help.
Indeed media queries and the layouts solves my problem.