Support » Plugin: Meta Slider » I'm not able to put meta slider on home page only

  • Resolved djamalle

    (@djamalle)


    Hi,

    Put the slider on the desired place, but it appears on all pages. I would like to put in on homepage only. The code in FAQ do not work for me, because I’m using thesis theme, and the structure of the theme is different, and I don’t have header.php where I put custom code, it doesn’t work on index.php file either.

    I installed smooth slider and used this code in custom_functions.php with great success: http://s13.postimg.org/nkenw3b13/Untitled.png

    But I can’t figure out how to edit similar code for meta slider..

    Thanks in advance!

    https://wordpress.org/plugins/ml-slider/

Viewing 1 replies (of 1 total)
  • Plugin Contributor matchalabs

    (@matchalabs)

    Hi djmalle,

    Please try this:

    function add_metaslider() {
        if (is_front_page()) {
            echo do_shortcode("[metaslider id=XXXX]");
        }
    }
    add_action('thesis_hook_before_content', 'add_metaslider');

    Regards,
    Tom

Viewing 1 replies (of 1 total)
  • The topic ‘I'm not able to put meta slider on home page only’ is closed to new replies.