• Resolved ggsalas

    (@ggsalas)


    Hi, i want to change the width of the images at full size but I only have this option for Thumbnail size and Medium size. My problem is that reduces image 500px and I need a larger size. Thanks.

Viewing 15 replies - 16 through 30 (of 30 total)
  • Thank you thank you thank you! I thought I was going mad. I run a photo blog and everything is 640px – I uploaded the graphic 4 times before looking for a solution. I edited the media.php file as suggested above and it worked perfectly.

    Hi Otto42!

    Thanks for the Hint with the extra Line in the function.php

    Works fine for me ??

    I am also having problem with this…

    However, none of the proposed solutions has worked.

    Is there a tested plugin that corrects this serious flaw ?

    / K

    Damnit,

    I solved it.

    I should have realized that all posted images gets a width and a height tag added in the code. And adding the line to functions.php wouldn’t change those old posts, only newer ones…

    So, thx Otto42 for the solution…

    /K

    Thanks for the $GLOBALS solution. Saved me jamming pencils in my eyeballs.

    Hi guys,

    Upgrading wordpress will overwite this file (media.php). How can I prevent this from happening? Other than remembering to edit said file after upgrade.

    Is there a way to add max size to options in Settings–>Miscellaneous?

    I tried do as suggested, but adding:

    $content_width = 600;
    $GLOBALS['content_width'] = 600;

    to my functions.php file did not work.

    The global function didn’t work for me.

    I was trying to post a photo that was 288px wide and it was showing up in the posts as 205px wide and the correct height so it was “squished”. If I clicked on the photo and opened it in a new tab it showed the correct photo. If I looked at the code it showed the correct dimensions. If I moused over the photo and clicked on properties it said the photo was 205px. It took me some time to figure this one out.

    It seems WordPress automatically adds a “class=”alignright” to the photo (when I want it aligned right) and in my style sheet that class was set to image: 50%. Since my text area is 410px it was adjusting the width of the photo to 50% or 205px. I removed that line and now my images work and are the correct width.

    I’ve gone and done it now… usually I can follow directions properly and not totally kill my blog beyond repair, but when I attemped to add the above “$Global…” code to my functions.php file, I must have put it in the wrong place, because my blog is… um… broken?!

    https://www.laurelmcconnell.com/blog

    I am now seeing an error message when the page loads (also the same when I try to go to my wp-admin page), and you’ll see that awesome mistake of mine is on the first line…:

    $GLOBALS[‘content_width’] = 650;
    Warning: Cannot modify header information – headers already sent by (output started at /home/laurmcc7/public_html/blog/wp-content/themes/black-minimalism-10/functions.php:395) in /home/laurmcc7/public_html/blog/wp-includes/pluggable.php on line 694

    I’ve just tried to upgrade the blog to the newest WordPress verion in hopes of replacing all the files (except wp-content), it will overrite my mistake and take care of itself, but apparently not.

    Any advice on what to do? Other than not EVER trying to do something by myself again…

    Nevermind… I called a friend and after a bit of digging we figured out that there was as bad functions.php file in my themes folder…

    Forgive me for being dense but what function.php ? In the includes folder or the theme folder ?

    I love some of these responses.

    The link in WP 2.5 should not say “full size” unless it plans on inserting the full size image….period. This is a big UI blunder.

    Thanks Otto42, working.

    I have 2.6 and have same problem…not love to change core files ??

    I’m using 2.6 and still cannot figure out the solution. My goal is to create a theme that can be shared with others. Therefore, I want to be able to allow people (wedding photographers) to post nice big pictures!

    photography blog

    Right now, I have to delete the set width and height. Is there a way so that when I select full-size, I won’t have this problem?

    @ rskrodzki > If there’s no function.php file at the root of your theme directory, just create it and paste Otto42’s code inside (where XXX is your max width images value) :

    <?php
    $GLOBALS['content_width'] = XXX;
    ?>

    @ furiousphotographers > A trick could be to give an extra-large value in your theme function file, 9000 for example, then all images smaller than 9000 pixels will be inserted with their real max values when “full-size” option selected.

Viewing 15 replies - 16 through 30 (of 30 total)
  • The topic ‘max Width full size image’ is closed to new replies.