Support » Theme: MesoColumn » Show slider on another page

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


    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/', 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/', false, $theme_version, true );
    wp_enqueue_script('jd-gallery-set-js', get_template_directory_uri(). '/lib/scripts/jd-gallery/', false, $theme_version, true );
    wp_enqueue_script('jd-gallery-transitions-js', get_template_directory_uri(). '/lib/scripts/jd-gallery/', false, $theme_version, true );
    add_action( 'wp_enqueue_scripts', 'meso_custom_slider_init' );          
    //call the slider
    function meso_add_featured_slider_page() {
    if( is_page('13') ) {
    get_template_part( 'lib/sliders/jd-gallery-slider' );

    replace the page id to your own.

    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


    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.