Support » Theme: Sydney » Remplace home slider by layer slider

  • Resolved BreTweb

    (@bretweb)


    Hello
    I would like to remplace home slider by layerslider …

    I saw that the slider is referenced into header.php calling slider.php

    What is the best way to do that ?

    Thank you

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hello there,

    You can overwrite the default slider template function in your child theme. Add the following PHP code into your child theme’s functions.php file.

    function sydney_slider_template() {
       echo do_shortcode('INSERT_LAYERSLIDER_SHORTCODE_HERE');
    }

    If you haven’t been running a child theme yet, you can download it here.

    Regards,
    Kharis

    Hello
    ok thank you but how to have it just on home page ?

    With your code it’s diplay on all pages (home style is home page)
    and theme header is just menu

    Thank you

    Hello there,

    Try to use the following.

    function sydney_slider_template() {
    	if(is_front_page()){
    		echo do_shortcode('INSERT_LAYERSLIDER_SHORTCODE_HERE');
    	}
    }

    Regards,
    Kharis

    Hello

    Thank you very much It’s ok works great !

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remplace home slider by layer slider’ is closed to new replies.