Jump to content

Adding author image next to name at top of blog?

Recommended Posts

I am wondering if it would be possible to include the author's image to the right of the author's name at the very top of each blog post? I found code that allowed you to place the author bio below the title, but it doesn't look great and there is too much white space. I don't need to have the full bio either. Just looking to place the circular image next to the name. Thanks to anyone that can help.

Link to comment
  • Replies 3
  • Views 883
  • Created
  • Last Reply

Top Posters In This Topic

Top Posters In This Topic

Posted Images

On 3/14/2024 at 11:05 PM, dross said:

Thanks for offering to potentially help. Here is a link to one of the posts: https://www.ocpd.org/articles/the-role-of-experiential-avoidance-in-obsessive-compulsive-personality-disorder-traits

Add to Last Line in Code Injection > Footer. Replace with your image url. To adjust size, just edit 30px in the code.

<script>
  $(document).ready(function(){
    $('<img src="https://upload.wikimedia.org/wikipedia/en/d/d7/Harry_Potter_character_poster.jpg" width="30px"/>').insertBefore('.blog-author-name');
});
</script>

image.png.94698100e861e3f33770cf18acc31bb4.png

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!)

Link to comment

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.