• Hi, Great theme! Thinking about going with pro version. I am using Huge It Slider rather than yours. I like its customized options. Can you please explain how to get the slider to show only on the front page? Thank you.

    https://www.prioribrazil.com

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello,
    how did you place the Huge It Slider there?

    Thread Starter msligar

    (@msligar)

    Hi D4z,

    Thanks for your response.

    I went to appearance > editor > header.php and at the bottom of the field I inserted:
    <?php echo do_shortcode(“[huge_it_slider id=’1′]”); ?>

    I know this is wrong but cannot figure out where to place the php code so the the slider only appears on the home page.

    I appreciate the help.

    Ah I see,
    so well you could use a different technique, using hooks in a child theme.
    The problem of your solution is that once you update the theme you’ll lose that customization.
    Anyway, in your case that:
    <?php echo do_shortcode("[huge_it_slider id='1']"); ?>

    should be:
    <?php if ( tc__f('__is_home') ) echo do_shortcode("[huge_it_slider id='1']"); ?>

    hope this helps.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Slider on front page only’ is closed to new replies.