Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #215349

    Hi,

    usually I find everything on my own but this time I’m a bit lost or maybe just to tired.
    As soon as I activate the enfold theme or child theme the pictures in the posts are not resized like they were before or like in the editor.
    I just installed everything fresh (WP3.8+latest enfold theme) but same result.

    A pic shows maybe better what I mean
    resize problem

    #215750

    In the meantime.
    I helped myself and maybe this helps someone else so I write how I did it.
    I had to erase in the base.css of the original theme the “width:auto” line under Images. Now it works.
    Changing it just in the child theme’s style.css didn’t helped as it gets overwritten.
    I just have to make sure the images have at least a minimum hight of 100px or the image overlay (circle with the arrows) doesn’t work anymore.

    
    /* #Images
    ================================================== */
    
    	img, a img {
    		border:none;
    		padding: 0;
    		margin:0;
    		display:inline-block;
    		max-width: 100%;
    		height:auto;
    		width:auto;
    		image-rendering: optimizeQuality;
    	}
    

    can be closed

    #215854

    Hey!

    You can add the !important value:

    img, a img {
    width:auto !important;
    }

    Cheers!
    Ismael

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Pictures not resizing in posts like they appear in the editor’ is closed to new replies.