A user wrote
I followed this tutorial https://sridharkatakam.com/display-featured-image-header-relocate-titles-single-pages-cpt-genesis/ ...
However I also need the same layout for some of the other pages (NOT all pages and NOT the home page)
We can use Advanced Custom Fields to add a custom "Show Banner Image?" checkbox in the page/post/CPT editor in the backend, which when ticked will show a "Banner Image" image field. If this image is set, we shall display it below the header and relocate entry title so it appears below the image.
Summary of steps:
- Register new image size for featured image on singular pages
- If we are on a singular page and if ACF is active and if banner image is set to be shown and if banner image exists, a) remove entry header from its default location b) display banner image c) add entry header having the title
Install and activate ACF.
To view the full content, please sign up for the membership.
Already a member? Log in below or here.