Viewing 3 replies - 1 through 3 (of 3 total)
  • Theme Author Richie KS

    (@rkcorp)

    ahhh..this need some work, here goes, add this to functions.php or your own child functions.php, haven’t tested it yet.

    // the slider css
    function meso_custom_slider_init() {
    global $theme_version,$is_IE,$bp_active;
    if( is_page('12') ) {
    wp_enqueue_style( 'jd-gallery-css', get_template_directory_uri(). '/lib/scripts/jd-gallery/jd.gallery.css', array(), $theme_version );              
    wp_enqueue_script('mootools-js', get_template_directory_uri(). '/lib/scripts/jd-gallery/mootools.v1.11.js', false, $theme_version, true );
    wp_enqueue_script('jd-gallery2-js', get_template_directory_uri(). '/lib/scripts/jd-gallery/jd.gallery.v2.js', false, $theme_version, true );
    wp_enqueue_script('jd-gallery-set-js', get_template_directory_uri(). '/lib/scripts/jd-gallery/jd.gallery.set.js', false, $theme_version, true );
    wp_enqueue_script('jd-gallery-transitions-js', get_template_directory_uri(). '/lib/scripts/jd-gallery/jd.gallery.transitions.js', false, $theme_version, true );
    }
    }
    add_action( 'wp_enqueue_scripts', 'meso_custom_slider_init' );          
    
    //call the slider
    remove_action('bp_before_blog_entry','meso_add_featured_slider');
    function meso_add_featured_slider_page() {
    if( is_page('13') ) {
    get_template_part( 'lib/sliders/jd-gallery-slider' );
    }
    }
    add_action('bp_before_blog_entry','meso_add_featured_slider_page');

    replace the page id to your own.

    Thread Starter Dan Caragea

    (@dancaragea)

    Thank you very much! I’ll try it soon and I will let you know if works. However, I do not understand the difference between page ID (12 and 13)?

    Theme Author Richie KS

    (@rkcorp)

    you need to check the post id that you want the slider to show.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Show slider on another page’ is closed to new replies.