Change profile image dimensions globally – UserPro Forums https://forum.userproplugin.com/forums/topic/change-profile-image-dimensions-globally/feed/ Thu, 16 May 2024 23:09:51 +0000 https://bbpress.org/?v=2.6.2 en-US https://forum.userproplugin.com/forums/topic/change-profile-image-dimensions-globally/#post-37198 <![CDATA[Change profile image dimensions globally]]> https://forum.userproplugin.com/forums/topic/change-profile-image-dimensions-globally/#post-37198 Wed, 14 May 2014 11:50:51 +0000 enigma666666 Hi there,

I want to use the profile image to display logos which are rectangular. What code do I need to edit in order to set a single rectangular size globally on all the different templates?

I have tried both the following, but not working properly:

span.up-profilepicture {
width:200px;`
height:100px;
}
.userpro-awsm-pic img
{
width:200px;
height:100px;
}

]]>
https://forum.userproplugin.com/forums/topic/change-profile-image-dimensions-globally/#post-37209 <![CDATA[Reply To: Change profile image dimensions globally]]> https://forum.userproplugin.com/forums/topic/change-profile-image-dimensions-globally/#post-37209 Wed, 14 May 2014 12:50:30 +0000 admin Try to add !important rule. 🙂 Also which avatar/thumb are you trying to edit? There could be shortcode way to make it and css way to do it.

]]>
https://forum.userproplugin.com/forums/topic/change-profile-image-dimensions-globally/#post-37215 <![CDATA[Reply To: Change profile image dimensions globally]]> https://forum.userproplugin.com/forums/topic/change-profile-image-dimensions-globally/#post-37215 Wed, 14 May 2014 13:10:11 +0000 enigma666666 Hi Ahmed,

I have tried using !important declaration,before I posted this topic,but it only changed the image on memberslist and css of memberslist was then messed up. It did not change globally to the same dimensions. I need all profile pictures on card.php, memberslist.php, list.php and view.php to change to rectangular format.

]]>
https://forum.userproplugin.com/forums/topic/change-profile-image-dimensions-globally/#post-37349 <![CDATA[Reply To: Change profile image dimensions globally]]> https://forum.userproplugin.com/forums/topic/change-profile-image-dimensions-globally/#post-37349 Thu, 15 May 2014 11:14:09 +0000 enigma666666 Okay I found the correct css for changing the profile image to rectangular shape.

If anyone else needs to change profile pic dimensions on profile view page, here is the css to edit:

For profile view page:
div.userpro-profile-img img{
}

]]>
https://forum.userproplugin.com/forums/topic/change-profile-image-dimensions-globally/#post-37362 <![CDATA[Reply To: Change profile image dimensions globally]]> https://forum.userproplugin.com/forums/topic/change-profile-image-dimensions-globally/#post-37362 Thu, 15 May 2014 12:15:06 +0000 admin Thanks for this tip! 🙂

]]>
https://forum.userproplugin.com/forums/topic/change-profile-image-dimensions-globally/#post-41768 <![CDATA[Reply To: Change profile image dimensions globally]]> https://forum.userproplugin.com/forums/topic/change-profile-image-dimensions-globally/#post-41768 Fri, 15 Aug 2014 20:09:15 +0000 shoky I also need the profile images to keep their original dimensions (rectangle logos) – how would this be accomplished. I set sizing as was mentioned above – but I still get square images. Any ideas? Some people may have square logos and some will have rectangular ones – i would like to be able to use their dimensions – but resize to fit the area.

]]>
https://forum.userproplugin.com/forums/topic/change-profile-image-dimensions-globally/#post-41983 <![CDATA[Reply To: Change profile image dimensions globally]]> https://forum.userproplugin.com/forums/topic/change-profile-image-dimensions-globally/#post-41983 Wed, 27 Aug 2014 18:04:19 +0000 enigma666666 Have you tried adding important and exclamation mark?

For example:
.div.userpro-profile-img img{
{
width:200px !important;
height:100px !important;
}

]]>
https://forum.userproplugin.com/forums/topic/change-profile-image-dimensions-globally/#post-41986 <![CDATA[Reply To: Change profile image dimensions globally]]> https://forum.userproplugin.com/forums/topic/change-profile-image-dimensions-globally/#post-41986 Wed, 27 Aug 2014 18:12:44 +0000 enigma666666 Btw, for those who !important has no effect, try using min-height and min-width, instead of “height” and “width”.
Then you will definitely get the desired result.

]]>
https://forum.userproplugin.com/forums/topic/change-profile-image-dimensions-globally/#post-42846 <![CDATA[Reply To: Change profile image dimensions globally]]> https://forum.userproplugin.com/forums/topic/change-profile-image-dimensions-globally/#post-42846 Wed, 24 Sep 2014 16:08:55 +0000 syiogene Hi,

thank you for your previous tips.

I’m trying to keep the original dimensions of my pictures as well (for rectangular logos)

If I use the css edit (width 200px / height 100px for example), the pictures are stretched.
Have you found a way to keep the proportions of the picture ?

Thanks

]]>