Setting default theme for jQuery through ThemeRoller

I am using jQuery themes in my html. ThemeRoller works correctly and applies the right themes. However, I want to change the default theme that it sets when the page loads. For example, I want to use the "Start" theme when loading html. Can anybody help?

+4
source share
3 answers

You can use the loadTheme parameter as follows:

$("#themeSwitcher").themeswitcher({ "loadTheme": "Start" }); 
+4
source

You need to load the created CSS and images from ThemeRoller and link to the CSS on your page.

0
source

As SLaks suggests, you need to do the following:

  • Download a new theme ( jquery theme loader )
  • Unzip the files and place them on your website (the theme of the south street will be copied to: MyWebproject \ Content \ themes \ south-street).
  • Make a link in html for css:

    <link href="Content/themes/south-street/jquery-ui-1.8.13.custom.css" rel="stylesheet" type="text/css" />

0
source

Source: https://habr.com/ru/post/1346588/


All Articles