How to dynamically change themes after clicking a drop down menu of themes

前端 未结 6 1171
甜味超标
甜味超标 2020-12-12 18:01

I\'m using bootstrap for the interface of the website I\'m developing. I am also planning to integrate the bootswatch themes to my site. I have created a dropdown menu conta

6条回答
  •  星月不相逢
    2020-12-12 18:43

    the main problem with above solution if page is refreshed the theme is gone. i found this article very helpful regarding persistent theme in the browser because it save setting in browser's storage.

    i hope it helps you

    http://wdtz.org/bootswatch-theme-selector.html

提交回复
热议问题