Site logo

Archived topic

Slider / Features only to display on frontpage/blogroll

6 replies · Started by Tobias Hjorth on May 18, 2015

Viewing posts 1–7 of 7

Hi all

I've found myself a nice featured slider which I can implement by using GPHooks (after header) - But I can't figure out how only to display the slider on the FrontPage/blogroll and nowhere else. - I'm sure there's some sneaky code I can use in GPHooks without implementing the slidercode into the theme /main php

Tried to search for the answer in the forums but found no solution.

You can wrap it in a PHP if conditional like so:

<?php if ( is_front_page() ) : ?>
    This will only show up on the homepage
<?php endif; ?>

Then click Execute PHP and you should be good to go :)

Thanks Tom, that worked just like you said :)

Perfect :)

Hi,

I have the same problem. I want to use slider only in front page in GPhooks -> After Header.
Slider shortcode is [huge_it_slider id="3"]

How to give help for a dummy like me? :)

I didnt get the earlier answer, so any help would be good.

Ok, i made it work...Thanks! :D

Glad you got it working :)

This archived topic is closed to new replies.