Jump to content

Adding a text with a link on top of the Shop page (Wells Template 7.0)

Recommended Posts

Guest GigiEry

Hi, I'm looking for a code to include a sentence + link at the top of my product page in 'SHOP' . Its on the Wells 7.0 template. Can someone help me please?

Link to comment
10 hours ago, GigiEry said:

Hi, I'm looking for a code to include a sentence + link at the top of my product page in 'SHOP' . Its on the Wells 7.0 template. Can someone help me please?

Can you share your site with the protected password so we can take a look?

BeyondSpace - Squarespace Website Developer

🖼️ Lightbox Studio (Enable Pinch/Zoom on lightbox)
🗓️ Delivery Date Picker (Squarespace Date picker form field)
💫 Gallery block 7.1 workaround
🥳 Sparkplugin Customisations Browsers (Browse +100 Spark plugin customisations)
🥳 Elfsight Template Browsers (Browse +1000 Elfsight widget Templates)

If you find my answer useful, let's leave a like or upvote so others with the same issue can find their solution. Thank you!

 

Link to comment

Add 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 html-block sqs-block-html t-block"><div class="sqs-block-content"><p class="">&nbsp;More information about original work here : <strong><a href="https://google.com">enter text link</a></strong></p></div></div>').insertBefore('div#block-yui_3_17_2_1_1642459418977_2404');
	});
</script>

Replace google.com with new url

image.thumb.png.34e3e1992f99243e379eef0e437dadc4.png

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
Guest GigiEry
41 minutes ago, tuanphan said:
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>
<script>
 $(document).ready(function() { 
		$('<div class="sqs-block html-block sqs-block-html t-block"><div class="sqs-block-content"><p class="">&nbsp;More information about original work here : <strong><a href="https://google.com">enter text link</a></strong></p></div></div>').insertBefore('div#block-yui_3_17_2_1_1642459418977_2404');
	});
</script>

Thanks a lot! It works on the 'faux shop' (I just created it to show an image of what I was looking for (text at the top). But I need a code in the 'shop' and here the code doesn't work. Maybe because I already need a business account to make it work? I am currently on a trial period. 

Capture d’écran 2022-01-18 à 14.02.10.png

Link to comment
16 hours ago, GigiEry said:

Thanks a lot! It works on the 'faux shop' (I just created it to show an image of what I was looking for (text at the top). But I need a code in the 'shop' and here the code doesn't work. Maybe because I already need a business account to make it work? I am currently on a trial period. 

Capture d’écran 2022-01-18 à 14.02.10.png

Can you share link to "shop"?

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
16 hours ago, GigiEry said:

Add to Last Line in Code Injection > Footer

<script>
   $(document).ready(function() { 
		$('<div class="sqs-block html-block sqs-block-html t-block"><div class="sqs-block-content"><p class="">&nbsp;More information about original work here : <strong><a href="https://google.com">enter text link</a></strong></p></div></div>').insertBefore('#productList');
	});
</script>

 

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
  • 2 years later...
On 5/10/2024 at 4:15 PM, architectureshooting said:

Interesting thread! Is there also a solution to set the custom text BEFORE the category navigation on the shop page? I would like to add a title  to the shop and an explanation for category browsing. My shop:

https://architectureshooting.com/druckeditionen-print-editions

Thank you very much

 

Markus

 

Add text like this?

image.thumb.png.9597fb3c0114b29974dcd58637f8e85f.png

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
On 5/19/2024 at 6:25 AM, mgroeteke said:

yes that would be great!

You can use this code to bottom of Website Tools > Code Injection > Footer

<div class="custom-text">
  <h4>Heading text here</h4>
  <p> paragraph text with <a href="https://google.com">Link here</a> and another text</p>
</div>
<script>
  $(document).ready(function(){
    $('.custom-text').insertBefore('#categoryNav ul');
});
</script>

then add this code to Custom CSS box

div.custom-text {
    display: none;
}
nav div.custom-text {
    display: block !important;
}
div.custom-text a {
    border-bottom: 1px solid #000;
}

image.thumb.png.c188ca7b2b09da346f6a84db0c5c393e.png

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

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.