Here is a quick function to remove the width and height attributes from images which should resolve your issue.
function _remove_img_dimensions_WPA84292($html) {
$html = preg_replace('/(width|height)=["\']\d*["\']\s?/', "", $html);
return $html;
}
//for new images
add_filter('post_thumbnail_html', '_remove_img_dimensions_WPA84292', 10);
add_filter( 'image_send_to_editor', '_remove_img_dimensions_WPA84292', 10 );
//for images already inserted into posts
add_filter('the_content', '_remove_img_dimensions_WPA84292', 10);
Related Posts:
- How to replace default rotating header images with my own
- How to override excerpt length in child theme of Twenty Eleven?
- How can I set a different specific header image on each page?
- Twenty Eleven unregister all default sidebars?
- Location of twentyeleven theme’s option filters?
- Is it possible to change the image in the default theme ‘Twenty Eleven’?
- Two scrollbars in popup window
- Where are the images for the theme Twenty Eleven 1.2?
- In theme Twenty Eleven, do the default images rotate randomly?
- the_content not working
- Changing where “posted on” text is located in TwentyEleven?
- Twenty Eleven theme header images manual next previous buttons
- Add Post Format Support to Twentyeleven Child Theme
- How to change the URL of a clickable banner?
- Navigation that Runs Above and Below Header Image
- Twenty Eleven Theme Adjusts for iPhones. How to stop this feature?
- IE7 compatible twentyeleven
- How do I eliminate header image from subpages in WordPress Twenty Eleven Theme?
- How do you add a custom excerpt length in twenty eleven child theme?
- Twenty Eleven header resize
- TwentyEleven horizontal submenu
- get_the_category_list or get_the_tag_list for custom post types and taxonomies?
- How do I add nested categories to drop-down menu in twenty-eleven?
- Why to check if function doesn’t exists in functions.php?
- Optimal approach for replacing the 8 header images in a child theme?
- Hide Twenty Eleven Theme From Themes Page
- How to create a drop down menu like in twenty eleven theme?
- How do I override template-tags.php in twentyseventeen theme
- Why max-width:97.5% on content images?
- why does twenty eleven theme mix up the css measurement units?
- custom, static home page / landing page with Twenty Eleven theme?
- How to force content refresh of a page that has been loaded previously by the user? [closed]
- WordPress twenty eleven sidebar on Pages
- jQuery Hoverintent plugin in TwentyEleven Menu [closed]
- Edit Comments Form in TwentyEleven
- Make “sidebar template” the default template for new pages
- What is the WordPress Pinecone sitting on top of? [closed]
- Twenty Eleven theme- have custom landing page, change nav “home” link
- theme options echoing multiple times
- Display trackbacks separately from comments in twentyeleven
- How to determine which custom header image is being shown
- How to remove header image on subpages in Twenty Eleven (default theme)?
- Conditional Statement – Best Way to Remove Nav on Contact Page
- How to Edit the style of header title of Twenty Eleven Theme?
- post edit button on front end
- CSS Twentyeleven / Sidebar has to be changed IN the CSS Stylesheet. Sidebar on the left side
- Clean install – Changing permalinks in twentyeleven give 404
- How can I hide Home in my menu in a specific page?
- Add an option to a Child theme of Twenty Eleven
- How do I add a function on a specific post category?
- Removing permalink from post thumb in twentyeleven
- How to create my own sidebar in Twenty Eleven child theme?
- new page sidebar-template by default
- How to put a Worpdpress theme in spanish (having the po file)?
- Creating a child theme from Twenty Seventeen
- Twenty Eleven Theme – SEO Yoast duplicate site titles
- twentyeleven_content_nav hook no longer outputs navigation link after 3.5 upgrade
- How to remove header image in Twenty Eleven theme?
- How do I display an image before the first post of the loop when I’m using get_template_part?
- How to properly create a child theme
- How to hide ‘Home’ button from appearing on supages – twenty eleven theme
- theme upgrade failing
- do_shortcode() in twentyeleven theme
- Three Questions with Twenty Eleven theme
- Do I have anything to worry about when switching to a default theme to test for plugin conflictions?
- Show Excerpts In Twenty Eleven Theme
- Change Twentyeleven Search Form Text
- New custom menu created. how to apply it?
- How to reverse engineer the Twenty Eleven background image uploader?
- Custom header image, and content, on Posts Page in twentyeleven with Static Front Page
- WordPress Twenty Eleven PhP – forcing php code to skip first post on homepage?
- How do I get the Social Media Plugin to show up in my Twenty Eleven child theme’s header?
- What is the difference between Twenty eleven & roots framework?
- WordPress upgrade from 2.7 to 3.3 Permalink problem
- Twenty ten or Twenty eleven as base for responsive child theme
- Enable featured image but not have it show up?
- When replacing #site-title with an image – why must it be located in root?
- Can the Twenty Eleven theme have a Main Sidbar at all?
- Does anyone know what’s the plugin for this Comment Section?
- Creating a second menu on Twenty Eleven aligned right from the first
- making my own “related pages” / “pages you might like” section
- Twenty Eleven: Home Page, View full post of most recent post & Summary of the rest
- .current_page_ancestor broken in Twenty Eleven
- Auto Changing Text Case
- WordPress Child Theme – twentyeleven
- Site blocked by WebSense on fresh WP Install
- Modify Twentyeleven child theme CSS – How to change body font size?
- How to reduce Header at the top of the page
- Twenty Eleven NOT valid
- How do I show how many products are remaining from the bought package
- Twenty Eleven theme, how to change style to a specific “format”
- Changing 2011 theme header image based on user dropdown
- How to separate a specific page’s comments from other comments
- Where are Sessions are being started? [closed]
- Converting HTML5 to XHTML
- Is Twenty Eleven Theme Responsive ? any update? [closed]
- Different coloured navigation links in Twenty Eleven themes
- How do I remove blog entries from home page Twenty Eleven child theme?
- Is it possible to animate the Twenty Eleven menu? [closed]
- Post interior margin in twenty eleven theme