Hey I am a newbie and am still trying to figure out how to put the slider into the header of the main page. What code do I need to have/where does it go? I made my slider (short code: [layerslider id=”1”] or PHP function: <?php layerslider(1) ?>) I don’t want it in the page so just inserting the code into the page on Wordpress isn’t working. I read somewhere else that it needs to go into the header.php file, but I tried that also and it doesn’t seem to work and I’m at a stuck point. Hope to hear back from you! Thanks. I would put the url of my website, but I'm running it from my computer and it's not online. Sorry about that!
Thank you so much! I was able to get it to work by using a few widget plugins like you suggested. I used PHP code widget so I could put the php code in the top part of my full-head widget and then Widget logic plugin to code it where it was only on the home page. Took a bit, but now it is all working the way it is supposed to. Thanks again!!! I really appreciate it!
Hey I am a newbie and am still trying to figure out how to put the slider into the header of the main page. What code do I need to have/where does it go? I made my slider (short code: [layerslider id=”1”] or PHP function: <?php layerslider(1) ?>) I don’t want it in the page so just inserting the code into the page on Wordpress isn’t working. I read somewhere else that it needs to go into the header.php file, but I tried that also and it doesn’t seem to work and I’m at a stuck point. Hope to hear back from you! Thanks. I would put the url of my website, but I'm running it from my computer and it's not online. Sorry about that!
Hey Sara_Anne,
If you want to stick with the PHP method you will need to add the mentioned function: <?php layerslider(1); ?> to your theme's header.php file.
I'd suggest to try the widget or other builder methods that your theme might provide first, they are much easier to implement.
In any case, you can find detailed instructions about every available method in the documentation on the following URL: https://support.kreaturamedia.com/docs/layersliderwp/documentation.html#publish-php
Hey Attila,
Thank you so much! I was able to get it to work by using a few widget plugins like you suggested. I used PHP code widget so I could put the php code in the top part of my full-head widget and then Widget logic plugin to code it where it was only on the home page. Took a bit, but now it is all working the way it is supposed to. Thanks again!!! I really appreciate it!