How to insert slider in header.php to appear only in the Home page
-
Hi everyone,
I got this nice theme:
https://www.elegantthemes.com/demo/?theme=Nimble
and this slider:
https://kreaturamedia.com/codecanyon/plugins/layerslider/
and I’d like to insert the slider inside the header (instead of the default slider) in the home page, so, my only idea (wrong one) was to use an exclusive page (Full wide page) to my Home and to create a new header.php with a different name and the php code of this slider inside and then, to call it from the fullwidepage.php with the editor instead of the original header.php.
In this way I got just an error in the php code.
If I insert the slider php code in the normal header.php it works but I don’t want to show it in all pages of my menu. And if I use the shortcode in the container of the Home page editor, of course it doesn’t appear in the place of the original slider.
I think maybe it’s so simple but my skills with WordPress are almost beginner.. that could be nice if someone share any idea with me,
Thanks in advance! )
- The topic ‘How to insert slider in header.php to appear only in the Home page’ is closed to new replies.