Skip to content

Commit

Permalink
Function not needed, was for a previous slider fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Scott Nix committed Oct 12, 2013
1 parent 55f252a commit 341d77e
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -162,17 +162,6 @@ function childtheme_post_thumb_size($size) {



// super hacky way to remove width and height from images, better for slider... but I don't like this :P
// reference - css-tricks.com/snippets/wordpress/remove-width-and-height-attributes-from-inserted-images/
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;
}



// remove the damn "Permalink to..." that appears on the titles, it's debatable this is bad for internal linking (SEO).
function childtheme_postheader_posttitle($posttitle ) {
$posttitle = "\n\n\t\t\t\t\t";
Expand Down

0 comments on commit 341d77e

Please sign in to comment.