Jump to content

Removing 'read more' arrow from summary block makes text off-center

Go to solution Solved by sorca_marian,

Recommended Posts

Site URL: https://www.camelliaco.com.au/home

I am styling a summary block (grid) and would like to remove the arrow from the 'read more' button. After reading previous posts I have now sucessfully done this, using the following code. However, when I add this code, the button sits off-center. It should be center-justified. Can anyone figure out why this would be?

I have uploaded an image of the page with and without the arrow hidden.
Page: https://www.camelliaco.com.au/home
Page password is: home

.sqs-gallery-design-autogrid .summary-read-more-link {font-family: 'Red Hat Mono', monospace;
  font-size: 0.8rem !important;
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  text-decoration: underline;
  text-align: center;
}

.summary-read-more-link {
  visibility: hidden;
}
.summary-read-more-link:before {
  content: 'Read More';
  visibility: visible;
}

Screenshot 2024-09-17 at 1.17.17 pm.png

Screenshot 2024-09-17 at 1.17.07 pm.png

Link to comment
  • Solution

Update the last part of the code to 

.summary-read-more-link:before {
    content: 'Read More';
    visibility: visible;
    position: absolute;
}

I noticed that you have a JavaScript error probably from a custom code.
"home:8087 Uncaught TypeError: Cannot set properties of null (setting 'innerHTML"
It might be executed before the element is in the HTML

Screenshot 2024-09-17 at 13.13.15.png

Screenshot 2024-09-17 at 13.13.35.png

 👨‍🔧👨‍💻 Squarespace plugins

🙋‍♂️ Squarespace Custom Web Development & Design

📅 Notion alternative

📹 Squarespace Tutorials for free - YouTube📹 

💯🚀 I have worked on over 200 Squarespace sites with custom code for over 9 years

🙋‍♂️ Let's connect on LinkedIn

 

Link to comment
  • 2 weeks later...

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.