The code in this tutorial extends this solution for the Gallery Pro child theme for Genesis and enables you to :
- Add a unique background image on each page.
- Display unique content over each image.
- Show default content if no unique content added.
- Display a default background image if none added.
Demo Video
Shows how you can add a unique image and unique content after the header on any page.
Easy Code Installation
There’s 3 simple steps :
Step 1 : From the download folder, copy & paste the PHP code from the functions.php file to the end of the Gallery Pro themes functions file.
Step 2 : Install the ACF plugin and create a new field named after_header using the following settings as a guide :
Step 3 : You can then add your unique content using a new custom field named unique_content like this :
Demo HTML
Register or login to access the download folder for members :
4 replies on “Add Different Full Width Images & Unique Content on Sub Pages In Gallery Pro”
Brad is it possible to have a different file dimension for the images on the sub pages? I want the full width image on the sub pages to be 1600 x 250. Thanks for any help you can provide.
1. Add the image with the dimensions 1600 x 250.
2. Modify the last line of the PHP code to include a class for after-header like this.
3. Add CSS to control the image dimensions and clear caching:
I tested this and it works.
You’re a good man Brad. I feel like I’ve gotten my money’s worth just from this one modification. Thanks!
You’re welcome Brian.