Jump to content

Change text "Quick View" on summary

Recommended Posts

  • Susana_SQSP changed the title to Change text "Quick View" on summary
  • Replies 10
  • Views 757
  • Created
  • Last Reply
14 hours ago, Theo4543 said:

Add to Last line in Code Injection Footer

<script>
$(document).ready(function(){
    $(".sqs-product-quick-view-button").html(function() { 
          return $(this).html().replace("Aperçu rapide", "new text");  
    });
});
</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

Lazy loading means that items aren't loaded until they are about to be needed.

The code can only work on items that are actually loaded on the page.

So when the page first loads. 30 items are brought in and the code runs to change those items. Then the changing code is finished it can't run anymore and can't change any items that are loaded later.

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
14 hours ago, creedon said:

@Theo4543

Lazy loading means that items aren't loaded until they are about to be needed.

The code can only work on items that are actually loaded on the page.

So when the page first loads. 30 items are brought in and the code runs to change those items. Then the changing code is finished it can't run anymore and can't change any items that are loaded later.

There is any solution to get around this issue? 

Link to comment

If you click on the LS link I provided. There is a section on that page that describes a number of hooks that can be used to customize Lazy Summary items appearance. In your case I think one of the hooks could be used to change the Quick View text.

I think what you need is someone who is familiar with LS hooks and can write code that can do what you need.

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.