I am trying to dynamically change the direction to RTL during runtime using the Theme API "KTTheme.SetDirection("RTL");". However, despite using this method, the direction is not changing as expected. Can you please assist me in resolving this issue?
Hi,
You will not be able to set KTTheme.SetDirection("RTL"), since after page refresh this value will be overridden with value from configuration.
In theme configuration, you can only set a default direction to switch direction dynamically you will need to store info about the user's selected mode in the cookies or your database. And then inside Starterkit/_keenthemes/KTBootstrapBase.cs inside function initThemeDirection set saved value.
Regards,
Lauris Stepanovs,
Keenthemes Support Team