• I am interested in something that will override all of my authors’ wishes and size down their images to a maximum width for each post.

    Authors keep adding images and it stretches my page.

    I looked through media.php, but can’t find anything. Tried adding “$GLOBALS[‘content_width’] = 598;” to my functions.php, but it still allows authors to input images at full size.

    What can I do?

Viewing 1 replies (of 1 total)
  • You may be able to control this by adding a rule to style.css. The exact code depends on your theme. In one of the themes I use, this worked:

    /* Stop overflow of full size images */
    img.alignnone.size-full { width: 100% !important; height: auto !important; }

    If you will post a link to your site where the problem can be seen, you may get a more specific answer.

Viewing 1 replies (of 1 total)
  • The topic ‘Automatically Resize Images to Body Width’ is closed to new replies.