Theo4543 Posted May 12, 2021 Posted May 12, 2021 Site URL: https://www.addictgalerie.com/home Hey, I want to know if it's possible to change the word "aperçu rapide" on Squarespace. It's "Quick View" in English. Thank you
tuanphan Posted May 14, 2021 Posted May 14, 2021 Hi. Which page in screenshot? 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!)
Theo4543 Posted May 18, 2021 Author Posted May 18, 2021 Hi it's https://www.addictgalerie.com/page-oeuvres-mechita
tuanphan Posted May 18, 2021 Posted May 18, 2021 14 hours ago, Theo4543 said: Hi it's https://www.addictgalerie.com/page-oeuvres-mechita 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!)
Theo4543 Posted May 20, 2021 Author Posted May 20, 2021 Hello thank you! I don't understand why when I change the name "Aperçu rapide" this only changes the first 30 products and not the next. The next stay with the text "Quick view". (I have Lazy Summary extension) link page: https://www.addictgalerie.com/page-fosso
creedon Posted May 20, 2021 Posted May 20, 2021 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.
Theo4543 Posted May 21, 2021 Author Posted May 21, 2021 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?
creedon Posted May 21, 2021 Posted May 21, 2021 LS does have some hooks that might be able to do the replacement. 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.
creedon Posted May 25, 2021 Posted May 25, 2021 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.
Recommended Posts
Archived
This topic is now archived and is closed to further replies.