This tutorial includes the code which enables you to remove the featured image after the header on any single post in Navigation Pro without removing the archive image.
The code adds a show/hide button you can use to remove the featured image. When you do, the single post displays i exactly the same way as it would when a featured image is not added :
Displays a switch to remove the featured image from the after header position on single posts without removing the featured image on archive pages.
Tested using the Navigation Pro child theme by StudioPress.
There’s 3 steps :
- # Copy & paste the PHP code from the file named image-functions.php to the end of your Navigation Pro themes image-functions.php file or your functions.php file
- # Copy & paste the CSS from the style.css file to the end of your Navigation Pro themes style sheet and clear caching
- # Install the ACF ( advanced custom fields ) plugin ( free or premium version ), in your WordPress Dashboard go to Custom Fields > Tools > Import and import the file named acf-73003.json