Jump to content

How to add post blog item code injection in events pages only

Recommended Posts

Hi community! I want to add the following shareaholic code to event pages of my website. I was able to do it for my blog pages by going to Page Settings > Advanced > Page Item Code Injection. But it seems for event pages there's no Page Item Code Injection option, only Page Header Code Injection (attached screenshot).

Is there anyway I can tweak this code to only show up on the event pages and not the event page landing?

Code here:

<!-- BEGIN SHAREAHOLIC CODE -->
<link rel="preload" href="https://cdn.shareaholic.net/assets/pub/shareaholic.js" as="script" />
<meta name="shareaholic:site_id" content="3910f41d5db90ac8072e79f044c119b0" />
<script data-cfasync="false" async src="https://cdn.shareaholic.net/assets/pub/shareaholic.js"></script>
<!-- END SHAREAHOLIC CODE -->

Screen Shot 2023-01-24 at 9.40.19 AM.png

Link to comment
  • 1 year later...
On 4/4/2024 at 5:20 PM, Begona said:

Hi! I'm having the same issue as @ArtMocaf. I need to add Shareaholic's code to share individual events. However, I only get the option to add the code under Events' Page Header Code Injection.

Can you help me @tuanphan?

site: https://avui-test.squarespace.com/ pw:avui

 

You mean

Add shareaholic to List Page

or Remove Shareaholic from List Page

?

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

@tuanphan

I need Shareaholic's share buttons to appear under inside each event, just like they appear in blog posts.

However, with events there's no option to add the code like in blogs to "Post Blog Item Code Injection" and adding an individual code block to each event is not an option for my client.

 

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.