Problem with images in full width layout

Posted in: Newspaper
Post count: 13

I stumbled upon a problem with the full width view (without sidebar). I want to use this view sometimes to show pictures full width.

In post edit I set the width of those image to original size. In this case this results in width="1258" height="944"

…but when I save the article and go the frontend (or preview) page I can see in the source the image has a width of 700px (while in post edit the code still says the image should have a width of 1258 pixels).

An example can be found here: http://historiek.net/charleys-oorlog/45626/45626/

Can you help me out with this? Because I really need the image to go fullwidth. Otherwise it has no sense to disable the sidebar on this page.

Thanks in advance, Yuri

Post count: 6600

Hi,

I have checked your post and seems like a resized image is added to your post: http://screencast.com/t/1IJNI2Ug
I have also tested this and found no issues with this: http://screencast.com/t/Bd3O1kCA8Hfd the full width image should be loaded.
Make sure you upload and add to your posts the full width/large image. If still doesn’t work make sure you disable all your plugins and empty your cache and/or purge files then check again.
Please let e know if you still have this issues!

Thanks

Post count: 13

Thanks for pointing me in the right direction. This problem seems to come up with the Photon-function in Jetpack enabled. But I’m still not quite sure why it is re-sizing the full size image to a width of 700px.

Maybe it has something to do with the content_width setting for the theme?

This thread seems to be interesting: https://wordpress.org/support/topic/photon-resizing-full-size-images-to-400px

Do you no where I can change the content_width setting? And do you have any idea if that would be a wise thing to do?

Turning off Photon isn’t really an option for us.

Thanks, Yuri

Post count: 13

I checked functions.php and changed

`/* ----------------------------------------------------------------------------
content width
*/

if (!isset($content_width)) {
$content_width = 700;
}`

To:

`/* ----------------------------------------------------------------------------
content width
*/

if (!isset($content_width)) {
$content_width = 1200;
}`

The full width images now come up the way the should: http://historiek.net/graphic-novel-over-de-eerste-wereldoorlog/46305/

Also the responsive layout is still working. Could this change cause any other errors or is it ok to edit this line in functions.php ?

Thanks in advance, Yuri

  • This reply was modified 11 years by historiek.
  • This reply was modified 11 years by historiek.
Post count: 6600

Hi,

Glad you managed to get this done.
This could help: http://jetpack.me/support/photon/
Not sure how it will affect your site, you should keep in mind this change and if something goes wrong consider it.

Thanks

Viewing 5 posts - 1 through 5 (of 5 total)
The forum ‘Newspaper’ is closed to new topics and replies.