• Resolved jbkeefer

    (@jbkeefer)


    Since the theme sliders appear broken I am looking to use meta slider. I have the code to put in the template file, but not sure where I should put it.

    Anyone pick this apart yet and can suggest the appropriate location to include the php code.

    I am thinking in the header, where the other slider scripts are, but could use a little piece of mind before I start picking this apart.

    Thank you,

    Jamie

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jbkeefer

    (@jbkeefer)

    If anyone is wondering, it is in the header after the “<!–BEGIN .content–>” documentation.

    This will make it appear on all pages, however.

    If you want just on home page use this:

    <?php if(is_home() && is_front_page()) {

    echo do_shortcode(“[metaslider id=336]”);
    }?>

    Thread Starter jbkeefer

    (@jbkeefer)

    Fix no longer required with theme update.

    marking resolved.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Using optional slider – where to insert code?’ is closed to new replies.