Introduction to Templates

So what are templates? In Cyclone Slider, the templates control the slider’s appearance. Think of it as what a WordPress theme is to WordPress. Templates allow developers to customize the look and behavior of the slider. You can check the templates that comes with Cyclone Slider in the templates folder:

View of my plugins folder in /wp-content/plugins/cyclone-slider-2

View of my plugins folder in /wp-content/plugins/cyclone-slider-2

 

Inside the templates folder you will find the “default” template. When you open it you will find that it contains the following:

Inside the default template

Inside the default template

These are the template files. The config.txt contains information about the template, mainly the “slide types” that the template supports. The screenshot.jpg is the screenshot of the slider displayed in the administration panel. The script.js contains javascript that controls the “behavior” of the slider. The slider.php is the main template file that holds both HTML and PHP code. The style.css contains the CSS that controls the appearance of the slider. The images folder holds images for the buttons and pager.

Cyclone Slider uses the template files to “construct” your slider. In the next post we are going to create our own template.

Next stop: Creating a Custom Template »