Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi there,

    You can add ‘restrict_to=home’ to the shortcode to do this.

    So the full shortcode would be, XXX will be your sider ID:

    [metaslider id=XXX restrict_to=home]

    Does this achieve what you’re looking to do?

    Many thanks,
    Dave

    Thread Starter GiHall

    (@gihall)

    Thanks Dave-

    I have no doubt it would achieve what I’m looking for if I knew where to add the shortcode. Appearances-Editor? Atahulapa Theme Options-Add HTML/CSS Inserts?

    If I use the Editor, which Template would I add the code to and do I add it to the end of the existing code?

    Sorry for my ignorance, thanks for your help.

    Gi

    Hi Gi,

    Where you will add the shortcode exactly will very much depend on your theme, but use the following rules according to whether it’s in a editable content area or in a template:

    Copy & paste the shortcode directly into any WordPress post or page.
    [metaslider id=XXX restrict_to=home]
    or

    Copy & paste this code into a template file to include the slideshow within your theme.

    <?php
        echo do_shortcode("[metaslider id=XXX restrict_to=home]");
    ?>

    It might be a case of trial and error to get the slider exactly where you want it.

    Is the slider you want on the homepage already being displayed? If so it’ll be a case of tweaking the shortcode as above?

    Thanks,
    Dave

    Thread Starter GiHall

    (@gihall)

    Dave,
    Thanks for your response. The slider is displaying on the homepage currently. I have tried to paste the code for my 727 slider into several templates (header, theme functions, main index) with no luck. The slider is included as a widget and therefore I don’t include it in individual posts. I will keep trying but so far, not successful. Thanks for your help.
    Gi

    Thread Starter GiHall

    (@gihall)

    Dave-
    I realized that since the slider is in a widget, I might be able to suppress the widget area on all pages but home. I found a plug in that allowed me to do just that- and it worked. Thank you for all your help, I’m afraid shortcode is not my forte. I appreciate your time.

    Gi

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Have Meta Slider on Home Page only using Athualpa Theme’ is closed to new replies.