How to create a new slider theme?
Login

New to DJ-Extensions?

How to create a new slider theme?

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 a "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 yoru 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 overriden 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 tempate css folder.

© 2023 DJ-Extensions.com. All rights reserved.