Monochrome Pro Image After Header On Single Pages

This code enables you to display either a custom image or the featured image after the header on any single page. It also displays the single page title over the image like this :

Note : If you’re wanting to replicate the image on single posts, use this tutorial.

Video Demo

The video shows how you can add a featured image to display after the header and float the entry title over the image. You can also add a image URL to a custom field named image which replaces the featured image.

Code Installation

There’s 2 – 3 steps :

  1. # From the download folder, upload the file named image-after-header.php to the Monochrome Pro themes root directory. You can select the template named Image After Header from the Template drop down menu on any single page edit screen.

     

    If you want to load the template on all single pages, paste this code at the end of the Monochrome Pro themes functions.php file and change the file name in the locate_template function to image-after-header.php

  2.  

    Step 1

  3. # From the download folder, copy and paste the CSS from the style.css file to the end of the Monochrome Pro themes style.css file and clear caching.
  4.  

    Step 2

  5. # New versions using Gutenberg. If your version of Monochrome Pro uses gutenberg, it won’t include the backstretch files so you’ll need to upload both the backstretch.js and backstretch-set.js file to your Monochrome Pro themes js folder.
  6.  

    Step 3

Register or login to access the download folder :

Download Folder

Related Templates


Comments

6 responses to “Monochrome Pro Image After Header On Single Pages”

  1. Shay Bocks Avatar
    Shay Bocks

    Hey Brad! How would we make this work for the Blog page template?

    1. Hello Shay, this is the best method in my opinion https://wpsites.net/web-design/image-after-header-on-genesis-blog-page-template/

      Or

      If you want a simple solution, try these code snippets.

      1. Shay Bocks Avatar
        Shay Bocks

        Thank you! I’m trying to implement the first solution you recommend, but the download folder won’t open/expand. Could you check that?

        1. I emailed you the files.

    2. Also note, i just published this which adds the image in the same style as the single post image which is different to the above tutorial https://wpsites.net/web-design/monochrome-pro-archive-templates-for-image-after-header/

Leave a Reply

Join 5000+ Followers

Get The Latest Free & Premium Tutorials Delivered The Second They’re Published.