Wordpress no doubt is best blogging software in world. Millions of bloggers in world use wordpress today for their blogs. The best part of wordpress is you can easily customize your blog design and layouts. Small and simple snippets can help you in this customizations. To implement these snippets in blog is very easy. Most of snippets are just to copy and past into blog theme files and save.
WordPress trick: If you would like to crop the images instead of scaling them then this simple but powerful snippet can help you to do this. Just read on..
Step 1. Open your function.php file and paste following codes in this file.
Step 2. Save your file and upload again. Thanks to wp-snippet.com for this simple code.Pl consider sharing if you enjoyed this.
WordPress trick: If you would like to crop the images instead of scaling them then this simple but powerful snippet can help you to do this. Just read on..
Step 1. Open your function.php file and paste following codes in this file.
// Standard Size Thumbnail
if(false === get_option("thumbnail_crop")) {
add_option("thumbnail_crop", "1"); }
else {
update_option("thumbnail_crop", "1");
}
// Medium Size Thumbnail
if(false === get_option("medium_crop")) {
add_option("medium_crop", "1"); }
else {
update_option("medium_crop", "1");
}
// Large Size Thumbnail
if(false === get_option("large_crop")) {
add_option("large_crop", "1"); }
else {
update_option("large_crop", "1");
}
Step 2. Save your file and upload again. Thanks to wp-snippet.com for this simple code.Pl consider sharing if you enjoyed this.
0 comments:
Important - Make sure to click the "Subscribe By Email" link below the comment for to be notified of follow up comments and replies.If you use Name/URL don't use keywords as your name (You Know Who You Are).
Post a Comment