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 do I change/modify the_post_thumbnail(); html output?
- How to use get_template_directory_uri() to load an image that is in a sub-folder of my theme?
- Automatically set the featured image
- How do I create a new WP admin color scheme?
- How to add classes to images based on their categories?
- Add attribute to link tag that’s generated through wp_register_style?
- How to display the_post_thumbnail if a post has one or otherwise display the first image in a post?
- Is it possible to maintain image aspect ratio when scaling images?
- Make WordPress size and name images for Retina.js
- How to add a rel attribute to images that contains their categories?
- Is it possible to be more page/post specific with admin_enqueue_script?
- Child Theme Not Overriding Parent Theme
- the_post_thumbnail fallback using hooks
- Enqueue styles after a plugin
- Custom image size in Media Dropdown
- How to set the jpg image compression for specific thumbnail sizes?
- Actions according to image type and size
- Woocommerce Storefront WordPress Ignore Media Gallery Images and use External 3rd Party Host
- Change size and crop medium_large images
- Why does the ‘wp_nav_menu’ function work only until a menu is created?
- Set the background to a default image if there isn’t a specified “featured image”
- set_post_thumbnail when user is not logged in
- Twentyten Child Theme: header images display messed up in admin panel
- Disable auto-resizing of uploaded images, but only for certain filename
- WordPress Menuing Question :focus
- Remove after images
- media resize/crop possibilities?
- different style sheet for just one page template
- It does not work concatenation in function.php
- Custom styles.css sheet for visual editor
- How to retrieve the current post’s generated featured image size?
- 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
- Woocommerce image sizes missing from Appearance › Customize but not declared by theme
- How to insert class in each list of categories?
- I can’t add CSS with functions.php
- Need to convert image url to a Base_64 data url with wordpress function..
- This code works, but the way I integrated it is breaking the media uploader. How can I integrate it properly?
- remove/hide wp-editor
- Change custom featured image size in twentythirteen child theme
- 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)
- how can I change all wordpress media file url to custom cdn url?
- Can I use ‘Featured Image’ as a hero image and a thumbnail?
- Class parameter in get_avatar args doesn’t get added to output
- How to reference different css (bootstrap) stylesheets for the header and body of a page?
- remove_filter function to unhook twentysixteen parent theme function
- Can we have conditional CSS styling?
- Post content overflows on my mobile phone
- function class doesnt work
- Help using ShortCodes to style whole chunks of the post
- how to remove a tag in the_category function
- 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
- How to automatically add custom classes to headings in content area
- No compression occurs on my jpegs after adding jpeg_quality hook to my functions.php file
- Remove Featured Images from Posts Older Than a Certain Date
- Featured images are cropped on index and post page
- Update add_image_size
- Function the_content
- Random text changing to weird icons in both admin & front end
- 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?
- add if statement to the featured image
- How to resize image from import image url?
- How to crop image in WordPress with aspect ratio for any size of image
- How to add height and width dimensions automatically to archive descriptions
- How to overwrite image if it already exists – WordPress, Gravity form
- How Do I Prevent Featured Image Caption Displaying Above And Below Image
- How to force Cover block to use the full size image resolution
- Add custom css to specific user