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

  • Resolved djamalle



    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:

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

    Thanks in advance!

Viewing 1 replies (of 1 total)
  • Plugin Contributor 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');


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.