Call Google HTML5 Shim

Only for users on old versions of IE function wpfme_IEhtml5_shim () { global $is_IE; if ($is_IE) echo ”; } add_action(‘wp_head’, […]

Read More

Remove Paragraph Tags From Around Images

function filter_ptags_on_images($content){ return preg_replace(‘/<p>\s*(<a .*>)?\s*(<img .* \/>)\s*(<\/a>)?\s*<\/p>/iU’, ‘\1\2\3’, $content); } add_filter(‘the_content’, ‘filter_ptags_on_images’);

Read More