I am using a child theme of Twenty Twelve, and my site is http://verandalane.com/
I am trying to insert a slider with the Easyrotator plugin using shortcode into header.php. The thing is, I only want it to show on the homepage, and no other pages/posts.
I have tried the suggestions in this thread, but neither method seems to work.
I am wondering if it is because of the form of shortcode being used. The examples use ones such as [shortcode], but what I am trying to use is [easyrotator]ID NUMBER[/easyrotator] (one with an opening and closing tag).
Also, the homepage uses the page-templates/full-width.php template. I am not sure if that matters or effects anything when I use things like is_home().
Anybody have any suggestions or ideas?
- The topic ‘Shortcode in Header But Only on Homepage’ is closed to new replies.