How to Embed Crelly Slider in your WordPress Template


In the last article we described about the features of Crelly Slider. As we already know Crelly is the best responsive wordpress slider plugin with layer animation and transition. It also supports touch, swipe and drag features. Let’s see how to embed crelly slider in your wordpress template.

Also read:

Steps to Embed Crelly Slider in WordPress Theme

  1. Navigate to Crelly Slider menu
  2. Create a new slider by clicking on “Add Slider” button
  3. Specify the slider name “homepage_slider” and create your slider with images and text
  4. You will get “Alias” and “Shortcode” as soon you save the slider on the “Slider Settings” page
  5. Now go to “Appearance >> Editor” and then click on Homepage Template (home.php) or open any file you want to incorporate the crelly slider
  6. Paste the following PHP code where you want to embed the crelly slider [php] <?php if(function_exists("crellySlider")) crellySlider("homepage_slider"); ?>
    [/php]

That’s it, your page initiates the crelly slider. There is another method to add Crelly slider to your wordpress with do_shortcode function-

[php] <?php echo do_shortcode("[crellyslider alias=’homepage_slider’]"); ?>
[/php]

Article by Shrinivas Naik

Hi, This is Shrinivas I am a web developer and WordPress enthusiast. I am also a hobby blogger who loves to write about WordPress, web tools, blogging and technology.


Leave a Reply