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
- add_image_size() parameter four ($crop = true) is ignored: the_post_thumbnail() returns scaled image(s) instead of hard cropped
- media resize/crop possibilities?
- Change CSS for logged in users
- height should be set to auto to avoid pixelation in the post thumbnail function
- How to stop wordpress from injecting hard-coded style into image attachments with captions
- How do I get my main image to stretch the full length of the screen?
- different style sheet for just one page template
- It does not work concatenation in function.php
- Random Featured Image Based on Category
- Custom styles.css sheet for visual editor
- Is my code correct to enqueue CSS on a specific page?
- Control the srcset much more (not all sizes in it each time)
- How to retrieve the current post’s generated featured image size?
- Check if the image size is available and if not use ‘full’ image size
- Way to store featured image width and height in two separate variables?
- header_image() with CSS
- Not all CSS elements transferring via parent to child?
- srcset and custom field get_post_meta and wp_get_attachment_url
- Limit dimensions of “Full” size images
- Visual Composer creating own shortcodes with vc_map() to return simple Image
- Split Media Queries in different files!
- Some questions about how proper add 2 CSS file in a WordPress theme?
- is there a way to remove featured image from blog page and single page
- problem loading stylesheets to wp_head dynamically
- What are the meta fields for an attachment?
- Can set_post_thumbnail be used to remove a thumbnail?
- Can’t locate custom image sizes defined by child theme
- Woocommerce image sizes missing from Appearance › Customize but not declared by theme
- How to properly set custom logo size?
- Add attribute only to first image of every post via functions.php
- How to insert class in each list of categories?
- Parent theme styles overriding child theme CSS [closed]
- I can’t add CSS with functions.php
- Theme JS is available but theme CSS isn’t
- Need To Change WordPress Meta Tags… Includes wordpress shortcodes
- Need to convert image url to a Base_64 data url with wordpress function..
- How to Add Shortcode to html img code?
- Proper Way to Load stylesheet on Condition
- This code works, but the way I integrated it is breaking the media uploader. How can I integrate it properly?
- Default Nav Highlight
- Custom styles in Tiny MCE with an external CSS file
- why can’t i add front.css to my frontpage.php
- Else/If Statement to Display Photo Descriptions
- get_template_directory_uri() links to child theme not parent
- Function to insert missing image size attributes into img tags
- Image Crop Not Working
- remove/hide wp-editor
- Getting out side of wp root folder from function.php using absolute path
- Use existing image sizes for WooCommerce
- Problem in using Customizer
- Page Template Won’t Load Correct CSS File
- wp_get_attachment_image_src returns image on main domain, false on subdomain
- current_page_item is missing inside wp_nav_menu
- Retrieve First Image Function
- Show Featured Image in else statement
- Custom Image Size in Insert Media
- Change custom featured image size in twentythirteen child theme
- resizing of thumbnails not working
- define css class in functions.php
- Prevent creating multiple image resizes in twentytwelve template
- Conditional function for excluding first image from content, not working
- Add_image_size not generating correct size
- Using add_image_size in functions.php to get original uploaded file
- get_image_tag() html output : empty src attribute
- How to make excerpt image be full size instead of thumbnail?
- show all the posts thumbnails
- struggling with syntax for the_post_thumbnail();
- include w_thumbnail_src in function?
- Thumbnail Image Rounded Corners w CSS (or any other good method)
- Need To Resize Images Exactly Without Losing Image Details
- Completely Disable WordPress RSS Feeds
- how can I change all wordpress media file url to custom cdn url?
- Different image using srcset function
- Advanced method to control cache of enqueued style/script
- Is it possible to limit number of files a non-admin user can upload via the WordPress media library?
- Auto delete content in specific folder inside media library
- How to change images url in function.php?