Get Free Trial

Flexmonster Layout user preferred styling

Ravi Kumar asked on November 12, 2020

As mentioned in documents we need to add additional styling in HTML file.
But we need to provide an option for user to select their preferred color. Is there any possible way to do that?

2 answers

Milena Pechura Milena Pechura Flexmonster November 13, 2020

Hello, Ravi,
Thank you for your question and for providing the images.
Our team suggests using the following example as a reference for the development of the described functionality:
Here are some explanations about the code in the sample:
For every theme, we created a button with the setTheme() function on click. The parameter of this function is a URL to the theme.
The setTheme function creates a link tag for the theme, adds it to the DOM, and uses the getPrevTheme() to remove the previous theme tag from the DOM.
Hope it helps!
Do not hesitate to contact us in case any other questions arise.
Best regards,

Ravi Kumar November 16, 2020

Hi Milena,
It works for our requirement. Thank You.

Please login or Register to Submit Answer