This download folder contains the modified file which enables you to remove the featured image which displays in the header hero position when added on single posts in Essence Pro. However, it doesn’t remove the featured image from archives.
By default, the image added in customize > Essence Pro Settings > Header Background image is displayed on the front page and all single posts and pages when a unique featured image is not added.
Shows the on/off switch added on the Edit Post enabling your to show or hide the featured image in the header without removing it from archive pages.
There’s 2 steps :
- # Install ACF and go to Custom Fields > Tools > Import Field Groups and import the acf-72991.json file like this :
- # Upload the header-functions.php file to the Essence Pro themes lib folder replacing the default header-functions.php file. Additional code has been added on lines 196, 25 & 227.
Usage on Single Pages
There’s 2 steps if you want to use the functionality on single pages.
Step 1 – In ACF Field Groups > Location, add this 2nd rule which adds the switch to all single page edit screens
Step 2 – Modify the PHP code for the conditional tag on line 227 in lib > header-functions.php from
is_singular() like this: