Adding a widget under hero image (page other than home page)
URL to the page in question:
http://
-
Hi Bill
I’ve had a browse but can’t see this exact question.
I’d love to add an opt-in widget to sit below the hero image for each page
(see example of another website here http://www.marieforleo.com/ the green banner).
You’ve already showed me how to add the opt in code to a widget, and I’m guessing I create a new widget with the image, but I’m just wondering how I add this new widget to each page, directly under the hero image?
Thanks in advance
Good Morning,
I would probably skip the widget if you have say an embed code for the newsletter sign up. We can just add that directly to a theme file which will be less complicated. Here’s how to do that:
- Go to the Appearance section in your WordPress dashboard and choose Edit.
- From the list of files on your right, choose hero-options.php and scroll down to the bottom.
- Just above this spot:
</div><!-- #hero-section -->
<?php } ?>
paste in your embed code and save your page.
That should give you a sign up box just below the hero section on every page that has the hero included.
Let me know if you have questions,
Bill
- The topic ‘Adding a widget under hero image (page other than home page)’ is closed to new replies.