Slider categories in different pages

  • Jacques Gosselin


    After I built a child theme and add the code to see the slider in other pages, I look in the forum to see how to built a conditional tag to specified categories of each slider in functions.php. Like:

    function graphene_display_slider(){
    if (is_front_page() || is_page('pastorale') || is_page('liens') || is_page('famille')){
    add_action('wp_footer', 'graphene_scrollable');}

    function custom_enqueue_scripts(){
    if ( ! is_admin() ) { // Front-end only
    wp_enqueue_script( 'graphene-jquery-tools' ); // jQuery Tools, required for slider
    add_action( 'wp_enqueue_scripts', 'custom_enqueue_scripts' );


    function graphene_slider_post_type(){

    return array( 'vitrines' );


    add_filter( 'graphene_slider_post_type', 'graphene_slider_post_type' );

    and.. I can not find this. How I can find a specific blog for that?

    On the web site :

    Thank for your friendly theme Graphene and all your services


Viewing 1 post (of 1 total)

  • You must be logged in to reply to this topic.
Graphene Themes Forum