Return to Support

Slider categories in different pages

Home Forums Graphene WordPress theme Support Slider categories in different pages

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #8893

    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')){
    graphene_slider();
    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' );
    ?>

    <?php

    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 : http://www.jacquesgosselin.com/ecdq

    Thank for your friendly theme Graphene and all your services

    Rivierot

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.