Jump to content

Add Text Block on Shop Page, Templateid - 55f0aac0e4b0f0a5b7e0b22e

Recommended Posts

2 minutes ago, creedon said:

SS doesn't allow you to insert a normal text block on a Store page on v7.0.

However with some Javascript and CSS it shouldn't be to hard to accomplish what you want. Can you tell us more about the text you want to add?

Hi there,

Thanks a lot for your fast reply! Appreciate it,

We're just trying to add some general information about our products on this page. Probably around 250 words?

Would this be possible, above the footer i guess in between the footer and product section?

Thanks again,

Nicholas

Link to comment

Add the following to Settings > Advanced > Code Injection > HEADER.

<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.5.1/jquery.min.js"></script>

Add the following to Settings > Advanced > Code Injection > FOOTER.

<script>

  $( ( ) => {
  
    /*
    
      if the message has single quotes in it then put a backslash before the
      single quotes. example: it's becomes it\'s.
      
      */
      
    let message = 'enter your message here';
    
    // do not change anything below, there be the borg here
    
    $( '<div>' +
    
      message +
      
      '</div>' ).insertAfter ( '.ProductList' );
      
    } );
    
  </script>

This is for a v7.0 site using a Brine family template.

Let us know how it goes.

Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support!

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.