Add the slider to a page as well as the front page

  • bellinds

    #1215

    Hi, Just wondering if there as some code i can add to a page that would include the slider onto it above some other content. I have it on the front page .. but i also have another “blog” page i just want to have the slider display on that 🙂

    Kim

    #14893

    Please supply Link/URL to the site in Question:

    https://forum.graphene-theme.com/topic/help-us-to-help-you-1#post-4535

    Kim

    bellinds

    #14894

    Not sure whether you can see it cause its a membership site but the site is: http://www.colouredpencils.com.au/ and the front page is going to another page .. but i want the slider to also appear on the blog page

    http://www.colouredpencils.com.au/index.php/blog/

    (which obviously isnt in the front page)

    Admin

    Syahir Hakim

    #14895

    Create a functions.php file in your Child Theme, and then add this code:

    <?php
    function graphene_display_slider(){
    if (is_front_page() || is_home()){
    graphene_slider();
    add_action('wp_footer', 'graphene_scrollable');
    }
    }
    ?>

    bellinds

    #14896

    Wooo hooo Thankyou soooo much 🙂

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

You must be logged in to reply to this topic.