Blog posts are displaying smaller featured images

Hi!

My blog posts are showing a featured image cropped to 900x528 instead of the original size. Where do i fix this?

Best,
Johan

Hi There @Johanschack

Thanks for writing in! Could you please try following this thread (https://theme.co/apex/forum/t/change-theme-featured-images-and-thumbnail-sizes/2453/2) and see if that helps.

Thanks!

Hi, this doesn’t seem to help.

Let me try explain it again:

When choosing a featured image url, i expect the uploaded image to be
https://ejendomsdox.dk/wp-content/uploads/2018/09/markedsregulering.jpg

However, something adds “-900x528” to the URL so i end up showing this image url:
https://ejendomsdox.dk/wp-content/uploads/2018/09/markedsregulering-900x528.jpg

I was hoping that you could tell me why this is happening and what i should do about it.

Best,
Johan

Hi @Johanschack,

It’s due to Wordpress image sizing, the original image is converted to many sizes and the plugin or them can call that image with a specific size. Though, if you like to switch to original, please add this code to your global custom javascript.

jQuery('.has-post-thumbnail .entry-featured img').each ( function() {
jQuery(this).attr('src', jQuery(this).attr('src').replace(/-\d*x\d*\./,'.') );
} );

Thanks!

Hi @Rad It works, but then the page still loads the small image first and later the large one. I’m guessing i should change some php file?

After help from the facebook group, i solved this like this:

I downloaded the content.php file from the parent theme, edited:

<?php x_featured_image(); ?>

to:

<?php the_post_thumbnail('full'); ?>

And uploaded it to the child theme, and now it works!

Glad you were able to resolve it :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.