Jump to content

Hide the View Event button on upcoming events

Recommended Posts

  • Replies 2
  • Created
  • Last Reply

Top Posters In This Topic

Popular Days

Top Posters In This Topic

29 minutes ago, AlfonsD said:

How can I remove the red "View Event" button on the above web page for some of the events?

You can hide it for all events by adding this to Design > Custom CSS:

/* Hide 'View Event' button */
a.eventlist-button.sqs-editable-button.sqs-button-element--primary {
  display: none;
}

If you only want to hide the button for some of the events, you'll need to specify the URL of each event. For example, to hide the button for the first event on the list, you could use:

/* Hide button on 27 January 2023 event */
a[href="/sachi-ne/sd4acce77nqtbn7fd6fplambiot1kp"].eventlist-button.sqs-editable-button.sqs-button-element--primary {
    display: none;
}

 

Did this help? Please give feedback by clicking an icon below  ⬇️

Improve your online store with our extensions.
About: Squarespace Circle Leader since 2017. I value honesty, transparency, appreciation and great design ♥.
Work: Squarespace Developer and founder of SF Digital, building the features Squarespace didn't include™.
Content: Links in my posts may refer to SF Digital products or may be affiliate links.
Catch up on all the release notes and announcements 2023 [for Circle members only] (there's a public version here)

Buy me a coffee

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.