Jump to content

Shut off author profile with CSS not the switch

Recommended Posts

Posted

Site URL: https://friendsfirstphoto.com/offers/free-family-session

I have 3 blogs on my website and one of them doesn't need the author profile. I noticed there's a class for that with a display switch. Can someone help me figure out how to place this code on the blog instead of using the switch which is site-wide?! 
 
.tweak-blog-item-show-author-profile.tweak-blog-item-text-alignment-left .blog-item-wrapper .blog-item-author-profile-wrapper {
  1. align-items: start;
  2. display: none;
}
  • Replies 1
  • Views 354
  • Created
  • Last Reply
Posted

Add the following to Blog Settings > Advanced > Page Header Code Injection for the blog page.

<style>

  .tweak-blog-item-show-author-profile .blog-item-wrapper .blog-item-author-profile-wrapper {
  
    display : none;
    
    }
    
  </style>

This is for a v7.1 site.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.