Tag Info

New answers tagged

0

I have added the style "background-position: center center;" and it work perfectly! So the new code will look like this: <?php global $post; $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array( 5600,1000 ), false, '' ); ?> <div class="mainblogwrapper" style="background-image: url(<?php echo $src[0]; ?> ) ...


-1

It's a bit of a hack, but you can hard-code a new crop ratio by changing line 566 of wp-content/plugins/buddypress/bp-core/js/avatar.js from... aspectRatio: self.options.aspectRatio, ...to... aspectRatio: 1.72817, ... replacing 1.72817 with the aspect ratio of your choice of course. Note you will also have to edit the same bit in avatar.min.js for it ...



Top 50 recent answers are included