Jump to content

Add a button on my store

Recommended Posts

1 hour ago, JulieStamenic said:

Site URL: https://www.juliestamenic.com/printstore

Dear all,
Could anyone tell me which code. to inject in order to have a button "Help me" next to / under the title "Welcome to the Print Store!" , since it's a store, it sounds pretty complex to customize that page.

Thank you for your help
Julie 

Screen Shot 2022-04-27 at 16.47.16.png

When you click on this button, which events will the site trigger?

Greeting, it's BeyondSpace, I am Squarespace dev focus on provide solutions to enhance feature that squarespace.com can't provide.
Feel free to check my current Squarespace Plugins Developement: Enable Pinch/Zoom on lightbox, Delivery Date Picker, Keyword Highlighter
If you find my answer fit your need, let's leave a like or upvote so others with the same issue can find their solution. Thank you

Link to comment
On 4/27/2022 at 11:16 PM, JulieStamenic said:

It will take the user to the following page https://www.juliestamenic.com/theprintyouneed 🙂

Try adding to Settings > Advanced > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
  $(document).ready(function() { 
		$('<div class="sqs-block-button button-block tp-button-block"><div class="sqs-block-content"><div class="sqs-block-button-container sqs-block-button-container--center"><a href="/theprintyouneed" class="sqs-block-button-element--small sqs-button-element--primary sqs-block-button-element">Button text</a></div></div></div>').insertAfter('h2.nested-category-title');
	});
</script>

button.thumb.png.1140eb3af198916b5eb86bf2740f7422.png

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 5/1/2022 at 8:52 AM, tuanphan said:

Try adding to Settings > Advanced > Code Injection > Footer

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
  $(document).ready(function() { 
		$('<div class="sqs-block-button button-block tp-button-block"><div class="sqs-block-content"><div class="sqs-block-button-container sqs-block-button-container--center"><a href="/theprintyouneed" class="sqs-block-button-element--small sqs-button-element--primary sqs-block-button-element">Button text</a></div></div></div>').insertAfter('h2.nested-category-title');
	});
</script>

button.thumb.png.1140eb3af198916b5eb86bf2740f7422.png

Thanks a million!!! Works like a charm

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.