Home › Community Forums › Ally Theme Support › Layer Slider WP on every page › Reply To: Layer Slider WP on every page
It didn’t work our for me, I’m good with coding. I found also something interesting:
There is a special page name, the “homepage”, with you can filter LayerSlider WP to display the slider on your home page. It is also works if you set up a static custom page instead of the default post listing.
The follwing examples are all valid, you can use either of these, you can even mix them on your own needs:
<?php layerslider(1); ?> // Displays the first slider on every page
<?php layerslider(1, ‘homepage’); ?> // Displays the first slider only on your home page
<?php layerslider(1, ‘my-custom-post-title’); ?> // Displays the first slider on a custom page by name
<?php layerslider(2, ‘1369’); ?> // Diplays the second slider on a custom page by ID
<?php layerslider(3, ‘homepage,about-us,1234’); ?> // Displays the third slider on multiple pages
It is important when you want to insert a slider to check its ID on the LayerSlider WP slider list page. When you removes some sliders, their IDs won’t be reindexed and the sequence may broke up. This is important to keep persistent your sliders preventing unwanted changes on the already inserted ones.
Can you help me out?