Custom slider, only on static home page

Hi Aigars,

Thanks for your earlier post on this thread (

, I used the code to get the slider to work independently of blog post images. However I can only find;

<?php dazzling_featured_slider(); ?>

in header.php, I don’t find index.php of front-page.php. And then the result is that the slider is on every page – I am trying to get the slider only on the front, static page.

Please advise

Yes I am having the same issue…
There’s no front-page.php but only header.php…

Please could someone help us solve this issue?

Thanks a lot!

Hi wollstonecraftclub,

I did some more googling and found this;

adolfocc 's third post works…

Hi dermeister,

it doesnt work for me…
I am not familiar with codes so i seriously don’t know where to insert those codes…
I tried to insert
<?php if ( is_page( ‘home’ )) echo do_shortcode(’[layerslider id=“1”]’); ?>
in front of the series of codes supplied by Aigars before but slider images are still showing on all my other web pages…
I really don’t know what to do…

Holly Goggle I found it!!

<?php if(is_front_page()):?>
Insert Aigars’series of codes here
<?php endif;?>

Yay! :slight_smile:

Yea, the syntax is a bit cryptic if you don’t know the language (which I don’t).

But all good then, resolved.


Hi There,

Awesome great to see you got that resolved.

Please advise if you have more questions.

Have a fantastic day!