Breadcrumbs

Home / Support Center / FAQ / Tutorials / DJ-ImageSlider FAQ / How to create a new slider theme?

Top Menu

Content

How to create a new slider theme?
How to create a new slider theme? 4.3 out of 5 based on 11 votes.

Short step by step instruction:

  1. Copy and rename default folder from and into modules/mod_djimageslider/themes
  2. Switch the theme to {YOURTHEME} in the module settings
  3. Find "-default" suffix and replace it with "-{YOURTHEME}" for all css selectors in both css files
  4. Adjust styles of your new slider theme

Creating a new slider theme is very simple. At the beginning you just need to copy and rename default folder from and into modules/mod_djimageslider/themes. Your new theme will be listed right away in the module settings where you can switch the theme to the newly created one.

The next step is to replace a suffix (theme name) of all css selectors in the {YOURTHEME}/css/djimageslider.css and {YOURTHEME}/css/djimageslider_rtl.css files. You can use any text editor with "find & replace" feature to accomplish this step in seconds (e.g. Notepad++, WordPad, etc.).

Now you are ready to make the changes you want in the {YOURTHEME}/css/djimageslider.css file and optionally also in the {YOURTHEME}/css/djimageslider_rtl.css file depends on what is the direction of your site language. The djimageslider_rtl.css file is loaded only for RTL languages together with djimageslider.css what means it should contain styles' overrides for RTL languages. It's optional, so you can delete it from your theme and then only the djimageslider.css file will be used for both language directions.

Theme overridden in the template

Alternatively you can customise slider in your template. You can copy from the default theme the djimageslider.css file into templates/{YOURTEMPLATE}/css folder and set the slider theme to "- override from template -". In this case you need to replace "-default" suffix with "-override" for all css selectors. The same rule with the djimageslider_rtl.css file applied here. It will be loaded for RTL languages only if it exists in your template css folder.


Found this article interesting? Subscribe for more.
Or share this article with your friends.
Thursday, 23 July 2015 15:24
 
User Rating:  (11)
PoorBest
 

Footer Menu