• Running into an issue with certain images when trying to add them to a post or page using the “Add Media” button.

    Add Media >> Upload Photo >> Size: Large >> Clicking Pencil Icon to Edit >> Change Size to ‘Custom Size’ and inputting in values works fine…the image properly shows up on the website with the new values.

    Add Media >> Upload Photo >> Size: Full Size >> Clicking Pencil Icon to Edit >> Change Size to ‘Custom Size’ and inputting values does not. The image does not take on the new values and instead displays the full-width of the column.

    Any ideas why this is so?

Viewing 2 replies - 1 through 2 (of 2 total)
  • This is caused by a CSS issue.

    If the parent container element has its width specified(say 200px) then it will limit all its child element to have its max width(i.e 200px).

    As wordpress handle its styling in a different way you can see in this example here. The css i applied here is the one which wordpress applies.

    If you still don’t want the Images to take the column width then write you custom css to override the same(use the commented code in your custom css).

    Thread Starter 2ysub2ysur

    (@2ysub2ysur)

    Hello & thank you so much for your response!

    I tried the code (replaced .wp-image-1601 with my own) and it did not work for me. The CSS for my images, in the theme, is already:

    img {
    height: auto;
    max-width: 100%;
    width: auto; /* IE8 */
    }

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘'Custom Size' Image Not Taking’ is closed to new replies.