Jump to content

Change link on 7.1 blog post author bio and resize photo

Recommended Posts

Site URL: https://www.rockycoastacupuncture.com/journal/the-acupuncture-approach-to-diagnosing-fertility-issues

I am working in 7.1 and looking to change the author link (that links to list of all posts by this author) at the bottom of each post in the author bio to link instead to the author's full bio in the About section. We currently have 2 authors and they would each have their own link. If this is not possible, I would like to remove this link completely.

Additionally I want to enlarge the photo. Bonus points if I can enlarge and move the photo to the left of the bio text—while the author name remains where it is.

Is there a way to do this?

Edited by melmotz
add 7.1
Link to comment
  • melmotz changed the title to Change link on 7.1 blog post author bio and resize photo

Add to Journal Page Header

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
	$('.blog-item-author-profile-wrapper>a').attr('href','https://google.com');
});
</script>

Replace google with new url

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
13 hours ago, melmotz said:

Tuanphan, thank you 🙂  I have 2 authors and each have a different link, is it possible to specify for each? 

Additionally, is there a way to enlarge the photo and move it to the left without moving the name with it?

can you share link to 2 posts of 2 authors? We can tweak the code 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!)

Link to comment
13 hours ago, melmotz said:

Remove above & use this new code

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
$(document).ready(function() {
  // Jason
	$('.blog-item-author-profile-wrapper>a[href="/journal?author=60bf853f96089f5def06b968"]').attr('href','https://google.com');
  // Beth
  $('.blog-item-author-profile-wrapper>a[href="/journal?author=60bf9366b8329566bf0a214d"]').attr('href','https://facebook.com');
});
</script>

 

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.