The issue was related to width: 100%; being applied by WordPress to all images. The code below fixes this issue – i applied this only to IE 8 and lower, as these are the browsers that have issues with the code.
img.size-full, img.size-large, img.header-image, img.wp-post-image {
max-width: none !important;
}
Related Posts:
- Missing feature image link function
- Generating Responsive Background Image Sizes in PHP
- Why are image thumbnails cropped proportionally (not per dimensions)?
- Why are image thumbnails cropped proportionally (not per dimensions)?
- Display height and width properties with the_post_thumbnail() or related function
- Removing the first image in content
- Function to auto-set a featured image that is already in use
- wp_get_attachment_image function size argument not working if I also add a custom class
- Overwriting Parent Theme’s Image Sizes
- Can you put a condition on add_image_size() depending on the width of the uploaded image?
- show first 3 thumbnails of posts in different sizes [closed]
- Set spesific size of featured images
- Can’t generate thumbnail images
- Redirect to another page using contact form 7? [closed]
- How to hide image-url if no attachment?
- How to add a new image size and apply it to posts only?
- Featured Image keeps cropping
- Custom image sizes showing in Classic Editor only when upladed directly to post
- Can You Set A Minimum Image Dimension For Resizing Images?
- Featured image on archive page based on post type
- Printing medium sized image
- Full size image option removing problem
- image_size with respect to aspect ratios
- How to load scripts/styles specific for a page
- Set JPEG compression for specific custom image sizes
- Issue with wp_get_attachment_image() and SVG file type
- How to change the markup WordPress inserts for post images
- Get recent posts with thumbnail
- How do I use element instead of tags in WordPress post content having webP support?
- Auto delete WordPress images/thumbnails (all sizes) and featured after X days/hours, or similar?
- TinyMCE custom stylesheets for different post types
- Remove images from get_the_excerpt
- How to add CSS style sheet dynamically in wordpress
- CSS stylesheet not loading
- Setting featured image with function, 1 part not working
- Best way to programatically add “rel” attributes to page and post images
- Overwrite Parent Theme add_image_size in Child Theme
- How to scale image with equal width and height without distortion?
- img width and height attributes being set by get_the_post_thumbnail
- Change post featured image on hover
- Count total number of images in post and echo results as number
- Get the 5 lastest Featured Posts from a category
- Register and enqueue style.css custom theme
- Multiple CSS body classes to specific page I.D.’s – is this possible?
- Add Featured image column into wordpress admin on pages AND posts
- Automatically wrap multiple images in div
- Post thumbnail not showing in WP admin area for custom post type
- Understanding and altering the structure of posted images
- Backstretch.js and thumbnail sizes to reduce loading time
- Image rotation fails to regenerate custom sized thumbnail
- Featured Image Thumbnail Creation
- Display images that are not in the content
- Please Explain the Importing Process of Multiple Stylesheets for Child Themes
- media resize/crop possibilities?
- height should be set to auto to avoid pixelation in the post thumbnail function
- different style sheet for just one page template
- It does not work concatenation in function.php
- Way to store featured image width and height in two separate variables?
- srcset and custom field get_post_meta and wp_get_attachment_url
- Visual Composer creating own shortcodes with vc_map() to return simple Image
- is there a way to remove featured image from blog page and single page
- Woocommerce image sizes missing from Appearance › Customize but not declared by theme
- I can’t add CSS with functions.php
- Need to convert image url to a Base_64 data url with wordpress function..
- Function to insert missing image size attributes into img tags
- Page Template Won’t Load Correct CSS File
- Change custom featured image size in twentythirteen child theme
- define css class in functions.php
- Add_image_size not generating correct size
- Using add_image_size in functions.php to get original uploaded file
- show all the posts thumbnails
- Thumbnail Image Rounded Corners w CSS (or any other good method)
- Completely Disable WordPress RSS Feeds
- How to change images url in function.php?
- Which filter fires upon setting a featured image
- Combine page types and Custom Taxonomy in a functions.php command
- Class parameter in get_avatar args doesn’t get added to output
- remove_filter function to unhook twentysixteen parent theme function
- Can we have conditional CSS styling?
- Post content overflows on my mobile phone
- Stylesheet does not load despite functions.php
- Remove clickable Link of WordPress Site Logo from Woocommerce Single Product page
- Help using ShortCodes to style whole chunks of the post
- Adding a class to the body of an inactive site using multisite
- Conditionally apply css for a specific template part
- Sticky – Featured Image
- Why am I losing image quality on my site?
- Replace image attributes for lazyload plugin on image elements with specific class
- Frontend Feature image upload not work
- How to automatically add custom classes to headings in content area
- Remove Featured Images from Posts Older Than a Certain Date
- Featured images are cropped on index and post page
- Function the_content
- Changing the color of post title [closed]
- Random text changing to weird icons in both admin & front end
- Set thumbnail from URL, by grabbing image in functions.php
- Dynamically adding Captions to images
- functions.php / replacing div’s with new ones?
- How do I make my child theme’s CSS update when I save it?
- Remove default Image Sizes