• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar

WP SITES

2785

Original Genesis & WooCommerce Tutorials & 6000+ Guaranteed Code

Snippets

  • Try Premium
  • Log in

Remove Featured Image On A Per Post Basis In Navigation Pro

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.

Show Hide Featured Image After Header Single Posts Navigation Pro

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 :

Remove Featured Image Single Post

Demo Video

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.

Installation Steps

There’s 3 steps :

  1. # 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
  2.  

    Step 1

  3. # Copy & paste the CSS from the style.css file to the end of your Navigation Pro themes style sheet and clear caching
  4.  

    Step 2

  5. # 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
  6.  

    Step 3

Download Folder

Custom Fields Featured Image Navigation Pro Theme

Reader Interactions

Leave a Reply Cancel reply

You must be logged in to post a comment.

Primary Sidebar

Code written by Brad Dalton specialist for Genesis, WooCommerce & WordPress theme customization. Read More…

Advertise · WPEngine · Genesis · Log in

  • Access Problems
  • Account Details
  • Consulting
  • Tags
 

Loading Comments...
 

You must be logged in to post a comment.