Jump to content

Make blog author profile image circle larger?

Recommended Posts

Posted

Hi

I really like the circle style of the author profile image for blogs but its just so small.  

 Is there a simple code just to enlarge this circle - maybe double the size  (and not change anything else about the profile), in 7.1?

Thanks
 

Posted
On 8/9/2021 at 5:58 AM, OliviaRichards said:

Hi

I really like the circle style of the author profile image for blogs but its just so small.  

 Is there a simple code just to enlarge this circle - maybe double the size  (and not change anything else about the profile), in 7.1?

Thanks
 

Hi. Can you share link to a blog post? We can check easier

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

Contact Customer Care - Learn CSS - Buy me a coffee (thank you!)

Posted

those author profile images at the bottom of the blogs are 50px, so to double them to 100px you need to use add some rules to your custom css (from the main Design menu).

.blog-item-author-profile-wrapper .author-avatar {
  width:100px;
  height:100px;
}

.blog-item-author-profile-wrapper .author-avatar img {
  width:100px !important;
  height:100px !important;
}

obviously you can change the 100 to whatever you like.

Dave Hart. Software/Technology Consultant living in London. buymeacoffee 

  • 2 weeks later...
  • 1 year later...
Posted

can't see the example on your site as there's no author profile on there, but the code still seems to work when I tested it out. what do you mean by distorted? if the aspect ratio is off make sure you've changed all instances of "100" in the code to be the same value.

if you want to move the link about you can add another rule to the code to move the bio down (same thing as moving the link up)

div.author-bio {
  order:100;
}

 

Dave Hart. Software/Technology Consultant living in London. buymeacoffee 

  • 2 months later...
Posted

@iamdavehart Hi Dave! Thanks for this. It's also distorting my author avatar (see attached image), even with all numbers set to 100. It gives it a bulging/fish eye effect, which is something I've never seen with CSS!

 

@ShanesadamsHere's my recommended CSS for removing the author bio:

Quote

/* Url */
a.author-website {
    display: none;
}

 

Screen Shot 2023-01-18 at 7.42.13 AM.png

Posted

I suspect that the avatar you have for your profile isn't square, so when we set the img width and height directly it distorts the picture. to fix this you can either make sure that you set your images widths correctly, or probably more easily, set the object-fit properties then you should find it works

.blog-item-author-profile-wrapper .author-avatar {
  width:100px;
  height:100px;
}

.blog-item-author-profile-wrapper .author-avatar img {
  width:100px !important;
  height:100px !important;
  object-fit: cover;
  object-position: center;
}

 

Dave Hart. Software/Technology Consultant living in London. buymeacoffee 

Create an account or sign in to comment

You need to be a member in order to leave a comment

×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.