Evanstang on "Twenty Ten Theme resizing image bug"

ساخت وبلاگ

I updated the Twenty Ten theme in wordpress and now my images are being auto-resized in my articles.

Using a twenty ten child theme for my site.

Any advice would really be appreciated as I have been trying very hard to fix this.

The site looks OK to me. What should it look like?

Just as an FYI, twentyten is not a responsive theme. This might be a good time to move to something a bit more up to date.

Evanstang
Member
Posted 54 minutes ago #

sorry for not being more specific. the images' width should be 800px (same as the width of my paragraphs) but they are being resized to a slightly smaller size.

Thanks for the advice I will look into that.. thought it's going to be quite a hassle as I would need to re-edit the CSS and php template files which I spent a lot of time on.

A couple of things to try:

1. Temporarily disable Jetpack's Photon module.

2. if that doesn't help, look for $content_width in your theme's functions.php and try a larger value. (It may be set at 640px.)

Evanstang
Member
Posted 31 minutes ago #

thanks a million Steve!! option 1 works! Sorry so it was not a problem with the twenty ten theme.

Would disabling this module have any negative effect on my site in any way?

It will slow down your page loads a bit. Contact the folks at jetpack to find out why this became an issue:

https://jetpack.com/support/photon/

Evanstang
Member
Posted 22 minutes ago #

noted, thanks again Steve really appreciate your help!

Evanstang
Member
Posted 9 minutes ago #

I amended $content_width in functions.php to 800px, and re-activated the Photon module, and the images are displaying correctly now. Cheers.

WordPress ...
ما را در سایت WordPress دنبال می کنید

برچسب : نویسنده : استخدام کار wpss بازدید : 394 تاريخ : سه شنبه 2 شهريور 1395 ساعت: 21:14