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

Kitchen Sink 2

Custom CSS for the login page Create wp-login.css in your theme folder function wpfme_loginCSS() { echo ”; } add_action(‘login_head’, ‘wpfme_loginCSS’); […]

Read More