• Resolved Jaaaarne

    (@jaaaarne)


    Is there a way to not display the featured image on the individual page?

    I really don’t like how the featured image looks on the individual page, the cropping is sometimes rather ugly. However, I don’t want to have two pages: one for slider and one for content.

    So I’d like to prevent the featured image from displaying on the individual page. Sadly, all my attempts at deciphering the code either lead to the page in question getting broken with the main menu disappearing, or it leaves a grey area in place of the image.

    It shouldn’t be this difficult,imo. How do I remove the featured image from the individual page without deleting the image itself from the post? So that the page has a featured image, but it doesn’t display on the individual page.

Viewing 3 replies - 1 through 3 (of 3 total)
  • Thread Starter Jaaaarne

    (@jaaaarne)

    I have solved this myself.

    Hello,

    can you share how you did it?

    Thread Starter Jaaaarne

    (@jaaaarne)

    I created a child theme and made a copy of inc/extras.php

    In this file I modified the header class definer (the block of code is titled this way exactly, somewhere around line 117) to change the way a Page header gets a class assigned to it. The goal is to prevent it from checking whether the page has featured image and just assign a normal class instead.

    This part of the code looks like this in my case:

    	} elseif ( is_page() ) { 
    			$header_class = 'normal-header';

    Hope this helps.

    • This reply was modified 7 years, 10 months ago by Jaaaarne.
Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Featured image on individual pages/posts’ is closed to new replies.