How to have the thumbnail cropping tool working

You can use this function, for example. Change for your needs and put on yours theme function.php file. add_image_size(‘Special’, 545, 365, true); add_image_size(‘Mobile’, 291, 197, true); add_image_size(‘Ipad’, 217, 147, true); add_image_size(‘Block’, 253, 172, true); add_image_size(‘Single’, 602, 358, true); add_image_size(‘Small’, 75, 49, true); add_image_size(‘Block-height’, 253, 245, true); add_image_size(‘Related’, 183, 124, true); add_image_size(‘Big_one’, 393, 266, true); On … Read more

How to link to featured image to media file URL

You would need to edit your themes single.php template file and modify the line of code calling the featured image. It would look something like this: <?php the_post_thumbnail(); ?> Replace it with this… <?php if ( has_post_thumbnail()) { $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), ‘large’); echo ‘<a class=”lightboxclassname” href=”‘ . $large_image_url[0] . ‘” title=”‘ . the_title_attribute(‘echo=0’) . … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)