About Katz Web Services
Katz Web Services is a web development company operated by Zack Katz.
-
Plugin Support Topics
Popular Posts
- Simple Vertical Align Plugin for jQuery
- How to Create a Custom RSS Feed in WordPress in 12 Lines of Code
- Contact Form 7 Modules - A Plugin
- iContact Widget for WordPress
- Gravity Forms Shortcode - A Detailed Explanation
- SEO WordSpinner Plugin - A Killer SEO Plugin for WordPress
- Weather Forecasts for WordPress - WP Wunderground Plugin
- jQuery validator annoyances
Tag Cloud
Optimization Google Plugin Interspire Shopping Cart WP Plugins Javascript WordPress Development Marketing SEO eCommerce Interspire Development Domains Search Engine Optimization Shopping Cart Google SEO Design WordPress Plugins CSS Functions.php Search Nofollow Website Redesign Links Denver SEO Web Design WordPress SEO Blogging WordPress Denver Code
Tag Archives: ImageScaler
Strip Extra ImageScaler Attribute from Plugin-Generated Code
I am using the ImageScaler plugin for WordPress on a project, and I like what it does, but it adds a non-standards-compliant attribute to images, such as:
<img class="" src="http://www.example.com/imagescaler/generated-image.jpg" alt="Example" width="258" height="234" imagescaler="http://www.example.com/imagescaler/original-image.jpg" />
To strip imagescaler’s imagescaler attribute, add the following into your functions.php file:
add_filter('the_content', 'strip_imagescaler');
function strip_imagescaler($content) {
$content = preg_replace('/imagescaler="(.*?)".?/s','', $content);
return $content;
}
Posted in WordPress
Tagged add_filter, Code, images, ImageScaler, Plugin, preg_replace, WordPress, WordPress Development, WordPress Plugins
Leave a comment