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.


7 comments on “How to Embed Crelly Slider in your WordPress Template
  1. Thank you , the slider is showing in 2017 theme of wordpress but in my own custom theme. do i need some addition function to do so… pls let me know asap.

  2. Hello Shrinivas, thank you so much for sharing this. Do you know how I can embed crelly sliders in the shark business theme? If there is a way without code, it will be great because I am not an expert with that. Thanks!

      1. Hello Shrinivas, thanks for your prompt reply. I do have the shortcode, but how can I replace the sliders from the shark theme in the home page with the sliders made in crelly sliders? I tried to copy the shortcode in the home page, but it was added in the content of the home page not in the header or replacing the current sliders.

        1. it seems that the theme doesn’t have the option to add the third-party shortcode, you have to add the slider shortcode in front-page.php using do_shortcode() function.

Leave a Reply


This function has been disabled for TechSini