Jump to content

How to add content blocks to left column on Event Detail pages?

Recommended Posts

Site URL: https://coconut-dolphin-d2rs.squarespace.com/upcoming-events/event-two-mtzrb-56k6s

Hello,

Is there a way to add content blocks to the left column of the Event Detail pages? I would like to add content blocks below the event title and meta data.

I thought about using CSS to hide the left column so I can create a custom column with content blocks but then there is no way to change the event title.

Here is a sample page: https://coconut-dolphin-d2rs.squarespace.com/upcoming-events/event-two-mtzrb-56k6s

PW: torch

Thank you,

Jeff

event_detail_page.jpg

Link to comment
On 10/13/2021 at 7:33 AM, jeffratto said:

Site URL: https://coconut-dolphin-d2rs.squarespace.com/upcoming-events/event-two-mtzrb-56k6s

 

Hello,

Is there a way to add content blocks to the left column of the Event Detail pages? I would like to add content blocks below the event title and meta data.

I thought about using CSS to hide the left column so I can create a custom column with content blocks but then there is no way to change the event title.

Here is a sample page: https://coconut-dolphin-d2rs.squarespace.com/upcoming-events/event-two-mtzrb-56k6s

PW: torch

Thank you,

Jeff

event_detail_page.jpg

If you can add content block under image, then we can use Script code to move it under date

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
  • 1 year later...
On 12/5/2022 at 3:51 PM, likemindedproductions said:

Is there a way to do this with a code block but have it repeat on every event page?

https://www.openingnights.co.uk/events/ph/six

Hi,

Yes. Possible. But Same text for all pages or different text? If same text, which text? Or you can add to Footer, then we will use script code to move its position.

If different, I think you need to add text via Markdown Block in Event Description, then we can move it easier

Email me if you have need any help (free, of course.). Answer within 24 hours. 
Or send to forum message

How to: Setup Password & Share url Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care

Link to comment
On 12/9/2022 at 2:35 PM, tuanphan said:

Hi,

Yes. Possible. But Same text for all pages or different text? If same text, which text? Or you can add to Footer, then we will use script code to move its position.

If different, I think you need to add text via Markdown Block in Event Description, then we can move it easier

Thanks for the response but I've built a fix:

<script>// Get the last code block in the .event-details element
  (function(){
let lastCodeBlock = document.querySelector('.eventitem-column-content .sqs-block-code')

// Get the .eventitem-column-meta element
let eventColumn = document.querySelector('.eventitem-column-meta');

// Move the last code block to the .eventitem-column-meta element
eventColumn.append(lastCodeBlock);
      }())
</script>

 

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.