• Hi,

    I have featured images set for my blog. However, when I do a search, on the search results page each page’s featured images shows up. (I did remove them on each page but they keep showing.) And they are blown way out of proportion and I would rather the content pages not have featured images.

    Can I remove featured images only from pages not posts.

    Site: https://www.asiwi.com

    Thanks,
    Ashley

Viewing 4 replies - 1 through 4 (of 4 total)
  • Theme Author Template Express

    (@danstriker)

    Hello,

    featured images are set to appear in posts not pages. When I run a search on your site the only images returned are one’s that are in posts. If you don’t want these to stretch full width you can add the sidebar into the search.php file below the closing primary div. So the bottom of this file should be:

    </div><!-- #content .site-content -->
    		</div><!-- #primary .content-area -->
    
    <?php get_sidebar(); ?>
    	</div>
    <?php get_footer(); ?>
    Thread Starter astreck92

    (@astreck92)

    Hi,

    The images are showing up for both pages and posts. The grey bar/line above the page title is the featured image I set for all of my pages. If I remove featured images for pages, then it automatically picks a random image from the page and blows it way out of proportion.

    Theme Author Template Express

    (@danstriker)

    To make this the natural size remove the width from the following which stretches the image:

    .imagerct {
    width: 99%;
    }

    or do a display none if you don’t want it to appear

    Thread Starter astreck92

    (@astreck92)

    I added .imagect {display: none;} but then it gets rid of the featured blog post image too, which I want to keep for my blogs.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Remove featured image from search results’ is closed to new replies.