Return to Support

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

Home Forums Graphene WordPress theme Support Add the slider to a page as well as the front page

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1215
    bellinds
    Member

    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 🙂

    #14893
    Kim
    Member

    Please supply Link/URL to the site in Question:

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

    Kim

    #14894
    bellinds
    Member

    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)

    #14895
    Syahir Hakim
    Keymaster

    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');
    }
    }
    ?>

    #14896
    bellinds
    Member

    Wooo hooo Thankyou soooo much 🙂

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

You must be logged in to reply to this topic.