Featured Image

Latest Reply from Alice at 2015-12-22 10:24:54

is there a way I can remove the featured image in posts, or make it that can use a lightbox?

Could anyone helps us to solve this problem. I want to remove the featured image in the post too :D.
Hi!
To get rid of your featured image inside an actual post you have to replace code:

if(has_post_thumbnail()) {
?><?php if (!is_single()) { ?><a href="<?php the_permalink(); ?>" title="<?php printf( $SMTheme->_( 'permalink' ), the_title_attribute( 'echo=0' ) ); ?>"><?php the_post_thumbnail(
array($SMTheme->get( 'layout', 'imgwidth' ), $SMTheme->get( 'layout', 'imgheight' )),
array("class" => $SMTheme->get( 'layout','imgpos' ) . " featured_image")
); ?></a><?php } else { ?>
<?php the_post_thumbnail(
array(278, 173),
array("class" => $SMTheme->get( 'layout','imgpos' ) . " featured_image")
); ?>
<?php }
}

with:
if(has_post_thumbnail())  {
?><?php if (!is_single()) { ?><a href="<?php the_permalink(); ?>" title="<?php printf( $SMTheme->_( 'permalink' ), the_title_attribute( 'echo=0' ) ); ?>"><?php the_post_thumbnail(
array($SMTheme->get( 'layout', 'imgwidth' ), $SMTheme->get( 'layout', 'imgheight' )),
array("class" => $SMTheme->get( 'layout','imgpos' ) . " featured_image")
); ?></a><?php }
}

in the file theloop.php of the theme.
We tried doing this - our featured images are suddenly appearing far too large. Is there a way to fix it?

See this page for an example: http://excitespice.com/deals/category/excitica-freebies/
Hi!
As I can see the default size for the featured images has been set to 278*173px on your website. These settings can be changed on page Pillow --> Layout in the dashboard of your website. However, the image for the "FREE! EXCITICA: SAVED BY MY STEP by Candi Lace" post is too small ( 75*50px ) and that's why it doesn't look nice. You have to change size of the featured image or upload more appropriate images for these posts.
I made the change in pillows>layout to 75x50, but it didn't change the image sizes. We WANT them that small! :)
Hi!

It seems to me that the reason for this problem is a third-party plugin that is installed on your website.
You may inspect the featured image for the "FREE! EXCITICA: TRIBUTE FOR THE VIKING by Calandra Hunter" post and find the URL of the image:
http://i1.wp.com/excitespice.com/deals/wp-content/uploads/2015/04/calandrahuntertributefortheviking200x3001-e1429150824689.jpg?fit=75%2C50

Howver, the natural size of this image is 33*50px. However, our theme doesn't provide such URLs for images. The normal URL should look like:
http://i1.wp.com/excitespice.com/deals/wp-content/uploads/2015/04/calandrahuntertributefortheviking200x3001-e1429150824689.jpg

Interestingly, such image exists on your website and it has the proper size: 75*50px. Unfortunately, some plugin adds this ending for the image URLs:
?fit=75%2C50

which is not necessary.
Hi Dave,

Thanks for sharing the replacing code for removing featured image. I used the code according to your advise. It has been worked in a single post and removed the featured image. But, not yet removed from the home page. It appears on the top of every post. How to remove it from the home page. Please help me. Thanks.
Also showing in category page
Hi!

All changes such as change background, change font, or add new elements, etc you can do by yourself editing css and html at your own risk.

We don't provide any services, paid or unpaid, for editing themes for individual users.

If you are going to remove the featured image just for some pages ( e.g. only on home page ) you will have to edit the content.php file or theloop.php located in the directory of the theme. It depends on the theme which file you need to edit.

Leave a reply

Add codeAdd image