Did a bit more digging and it appears to have been a conflict in my theme:
add_filter( 'post_thumbnail_html', 'remove_width_attribute', 10 );
add_filter( 'image_send_to_editor', 'remove_width_attribute', 10 );
function remove_width_attribute( $html ) {
$html = preg_replace( '/(width|height)="\d*"\s/', "", $html );
return $html;
}
Related Posts:
- How to show a custom meta box on the “Quick Edit” screen?
- How to add CSS class to custom logo?
- Display Search Result Count
- theme path in javascript file
- Minimum Template Files for Theme Development
- Are content.php and content-single.php the same?
- Theme Customizer : how to create multiple-level panel
- How to change get_custom_logo() url?
- How to execute conditional script when on new customize.php (Theme Customize) screen
- What can I hook into after_setup_theme?
- How to set the default value of a option in a theme?
- How to develop a multilingual theme?
- Add meta-information to theme itself
- Theme elements not translating
- Adding dashicon fonts to the admin of pre 3.8 installs
- How to use bloginfo( ‘template_directory’ ) in array
- Is using eval() ok in this scenario
- Prevent WordPress updates from overriding custom language translations?
- Display site admin profile fields in header.php
- Add tinymce to widget textareas
- Custom Nav Walker to show siblings and children of current branch?
- Page template across themes
- WordPress Genesis Child Theme Filter divs
- Displaying part of every child page?
- Append HTML to an LI of wp_list_categories
- Customizer API and add_panel(). Panel doesn’t show
- Is there a filter for enqueue script to strip the type=”text/javascript” property
- How display id of most recent modified post in wordpress?
- I want to get the home root path
- How to add code in the content area in a WordPress theme?
- Bold letters inside excerpt [closed]
- How to make Home Menu( Front Page) use index.php instead of page.php
- Unable to pass variable on theme cusomizer add_settings()
- JavaScript Change focus to password field login page being reset
- Using esc_url with a hard coded url
- Broken template went invisible
- Select full Image Size on widget “Genesis – Featured Posts”
- Where to find the code that redirects requests on the static page URL to the home page
- How to change database values on theme update
- How to Add Custom Button to Text(HTML) Editor and NOT Visual Editor
- Custom Nav Walker Trouble
- Issue on Adding A Class to Bootstrap Navbar Walker Dropdown
- Post thumbnail to append post content via ajax click event
- Is it possible to save more than one image to an option?
- Custom WordPress File Inclusion
- Should i clear the plugin cache for cache busting?
- Wp Super Cache stops the update of a Post Meta
- Renaming a theme so it aids SEO and the theme used is hidden
- Dynamic menu links after header title
- How to do a section of bulleted text within our page?
- What should I use? index.php, front-page.php and home.php
- Theme thumbnail in dashboard
- Prerequisites Skills to learn WordPress [closed]
- How to change the theme directory uri for localhost?
- What is the diferences between pure WordPress theme and Woocommerce theme? [closed]
- Should I create multiple sidebars, or use or one dynamic sidebar with logic to determine it’s abilities?
- Insert Rich Text Editor in theme?
- WordPress Theme that returns all posts as a JSON object?
- HTML block gutenberg templates
- Use a filter on menu items that have children
- Customizer: get_preview_url() inside customize_save_after hook
- How to add custom meta box when you have a custom page template file
- Password protect a custom template
- Theme Check errors of theme code
- New to WordPress – Read the Codex, Other Docs; Still Confused
- Style first 3 posts differently with WP_Query [duplicate]
- Does wordpress add their own classes into nav menus?
- Post archives link yields a 404 Not Found
- Getting white screen of death on category pages because of body_class() function
- Let user to upload multiple time
- get main URL from subdirectory with php
- How to add custom theme in hosting server?
- Infinite loop when nesting have_posts()
- Is_single not working properly in genesis
- Debugging slow WordPress Theme Customizer (Any option similar to Query Monitor)?
- Code showing in wordpress post titles around website
- register_theme_directory() sees custom themes directory, but blank frontend
- how to call options on front end and add logo
- Jetpack Infinite Scroll Not Working
- After WP 4.6.1 Update , Blog page started giving 500 error
- How to show children pages as array
- How to share posts (and plugins) between existing site and new, separate dev/test installation?
- Mutlisite in wordpress is not working
- How can i create a tag with the template’s name like below, and what is the purpose of using them? [duplicate]
- Checking conditionals
- add_theme_page is not working
- How to check if a certain theme option settings has already been set
- including post-specific feed without full wp_head()
- Show post thumbnail only if it exists using timthumb
- All post ids are the same after this query but rewind_posts() does not seem to work here?
- How can I tell WP which file to load by default in Appearance > Editor?
- What matters should I care to make my theme SEO friendly? [closed]
- How to resize video lightbox popup in wordpress? [closed]
- How can I get rid of the distance when I’m using list-style-type: none? [closed]
- Extracting Distance from FacetWP Proximity Function to Display in WordPress Template
- Theme now uses require.js and enqueue script no longer works
- WP site makes mobile browser crash for high memory usage
- Fatal error: Call to undefined function the_posts_navigation()
- How to automatically set a Template Page Name next to a page in menu screen such as WooCommerce pages, front page, or posts page in wordpress?
- Remove nonindex meta tag