Jump to content

Add Text Block on Shop Page, Templateid - 55f0aac0e4b0f0a5b7e0b22e

Recommended Posts

  • Replies 4
  • Views 350
  • Created
  • Last Reply

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?

Find my contributions useful? Please like, upvote, mark my answer as the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment
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 the best ( solution ), and see my profile. Thanks for your support! I am a Squarespace ( and other technological things ) consultant open for new projects.

Link to comment

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.