Archive | Snippets

RSS feed for this section

Get Rid of bbPress Breadcrumbs

25 March

Just add the following snippet to your functions.php: function custom_bbp_no_breadcrumb ($param) { return true; } add_filter (‘bbp_no_breadcrumb’, ‘custom_bbp_no_breadcrumb’); Twitter Facebook Google+ LinkedIn

Remove Pesky Width and Height on WordPress Images Using a Filter

25 March

Not the best way to go about it perhaps, but it works. Add the following filter to functions.php: // Remove the automatic width and height on images added by WordPress function remove_thumbnail_dimensions( $html, $post_id, $post_thumbnail_id, $size, $attr ) { $html = preg_replace( ‘/(width|height)=\”\d*\”\s/’, “”, $html ); return $html; } add_filter( ‘post_thumbnail_html’, ‘remove_thumbnail_dimensions’, 10, 5 ); […]

Comments Off on Remove Pesky Width and Height on WordPress Images Using a Filter Continue Reading →

Introductions

25 March

Hi there, I’m Andy. I’m going to be using this space to post various tips & tricks I’ve learned over the years using WordPress. So … thanks for tuning in, more to come… Twitter Facebook Google+ LinkedIn