BADGE SIZES – UserPro Forums https://forum.userproplugin.com/forums/topic/badge-sizes/feed/ Mon, 29 Apr 2024 22:54:18 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/badge-sizes/#post-23997 <![CDATA[BADGE SIZES]]> https://forum.userproplugin.com/forums/topic/badge-sizes/#post-23997 Mon, 03 Mar 2014 05:36:46 +0000 mediakliqco How do I show larger badges just in the profile view and keep the same sizes in the card?

I’m seeing all badges are style by 1 class: need more control over this to customize… I’ve created larger icons but when I adjust the css it’s globally changes the size in the card as well… thanks

/* add custom badges */
add_filter(‘userpro_show_badges’, ‘userpro_badges_show’);
function userpro_badges_show($user_id){
global $userpro_badges;
$output = null;

/* Find user badges (get_user_meta – _userpro_badges) */
$get_badges = $userpro_badges->get_badges($user_id);
if (is_array($get_badges)){
foreach($get_badges as $key => $badge) {
if (isset($badge[‘badge_url’])) {
$output .= ‘‘;
}
}
}

return $output;

}

]]>
https://forum.userproplugin.com/forums/topic/badge-sizes/#post-24010 <![CDATA[Reply To: BADGE SIZES]]> https://forum.userproplugin.com/forums/topic/badge-sizes/#post-24010 Mon, 03 Mar 2014 09:53:35 +0000 admin The badges are adjusted by this class by default

Change the max-width and max-height and create specific badge width/height based on parent element if you know css. 🙂 That way you get larger badges to appear.

]]>