paton400
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Rookie] Full-width TemplateIs there a way to make the nav bar and everything above it full with and rest rest normal?
Cheers
Forum: Themes and Templates
In reply to: [ColorMag] Background image behind page titleDoesn’t work. That’s what I did, but just remains white.
Forum: Themes and Templates
In reply to: [ColorMag] Change color of white strip where socials areYes I know that, but I’m struggling to find the correct class/id to change.
Forum: Plugins
In reply to: [WP Club Manager - WordPress Sports Club Plugin] Running SlowHi,
Thanks for the tips.
My only concern was that there was no issue until I started using your theme.
The second I made the switch the entire site was running slow. More so on smart phones.
DO you have any idea what may have caused that on your end?
Regards
Forum: Plugins
In reply to: [WooCommerce] Blurry Thumbnails and ImagesHi,
That was the same information that I was referring to. I have tried all this so many times.
However…
I just figured out my problem. It was down to the regeneration plugin. The bulk action doesn’t work. I had to regenerate each image individually and it worked.
Thanks for the reply.
Forum: Plugins
In reply to: [Buddypress Xprofile Custom Fields Type] user image as avatar syncI fired in the following snippet to functions.php and it works.
function display_avatar($avatar, $params) { $avatar = bp_get_member_profile_data(array('field' => 'IMAGEFIELD', 'user_id' => $params['item_id'])); return $avatar; } add_filter('bp_core_fetch_avatar_url', 'display_avatar', 15, 2); function display_avatar_html($avatar_html, $params) { $upload_dir = wp_upload_dir(); $new_avatar = $upload_dir['baseurl'] . bp_get_member_profile_data(array('field' => 'IMAGEFIELD', 'user_id' => $params['item_id'])); $parts = explode('"', $avatar_html); for ($i=0; $i<count($parts);$i++) { if (strpos($parts[$i], 'src=')) { break; } } $i++; $prev_avatar = $parts[$i]; return str_replace($prev_avatar, $new_avatar, $avatar_html); } add_filter('bp_core_fetch_avatar', 'display_avatar_html', 15, 2);
Only problem is that it doesn’t let you crop images. And some images may be larger than others. It all depends on what the user uploads.
Is there any way to add cropping this way?