Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #20940

    I was wondering what files I would need to edit to just replace the slider on the Home Page Only.

    I know you guys are working on a fix, but I really need something that is clickable from mobile devices.

    We like the Revolution slider… it say’s you can insert this code

    <?php putRevSlider( “alias” ) ?>

    Is this easy?

    #109737

    You can try following – open up header.php and replace:

    if(!empty($avia_config['slide_output']))
    {
    echo "<!-- ####### SLIDESHOW CONTAINER ####### -->";
    echo "<div id='slideshow_big' class='slideshow_color container_wrap ".avia_is_dark_bg('slideshow_color', true)."'><span class='top_stripe_shadow'></span>";
    echo "<div class='container'>".$avia_config['slide_output']."</div></div>";
    $big_slider_class = "big_slider_active";
    }

    with:

    if(!empty($avia_config['slide_output']) && !(is_home() || is_front_page()))
    {
    echo "<!-- ####### SLIDESHOW CONTAINER ####### -->";
    echo "<div id='slideshow_big' class='slideshow_color container_wrap ".avia_is_dark_bg('slideshow_color', true)."'><span class='top_stripe_shadow'></span>";
    echo "<div class='container'>".$avia_config['slide_output']."</div></div>";
    $big_slider_class = "big_slider_active";
    }
    else if(is_home() || is_front_page())
    {
    echo "<!-- ####### SLIDESHOW CONTAINER ####### -->";
    echo "<div id='slideshow_big' class='slideshow_color container_wrap ".avia_is_dark_bg('slideshow_color', true)."'><span class='top_stripe_shadow'></span>";
    echo "<div class='container'>".putRevSlider( "alias" )."</div></div>";
    $big_slider_class = "big_slider_active";
    }

    Make sure that the putRevSlider( “alias” ) function returns some (valid) html code.

Viewing 2 posts - 1 through 2 (of 2 total)

The topic ‘Homepage Slider’ is closed to new replies.