Rebecca365 Posted January 18, 2023 Share Posted January 18, 2023 On my blog posts, can I change the word "Comments" to "Notes", and if so, how? Thanks! Rebecca Link to comment
tuanphan Posted January 19, 2023 Share Posted January 19, 2023 Hi, Can you share link to a blog post? We can help easier 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
Rebecca365 Posted January 19, 2023 Author Share Posted January 19, 2023 Sure: https://springboardmealplans.squarespace.com/recipes/this-is-a-sample-blog-post I'd like to change the word "Comments" to "Notes" and change the wording on the button to say simply "Post". Thanks! Link to comment
Rebecca365 Posted January 24, 2023 Author Share Posted January 24, 2023 Update: I have disabled comments until I can get this issue resolved. Link to comment
tuanphan Posted January 26, 2023 Share Posted January 26, 2023 On 1/24/2023 at 10:23 PM, Rebecca365 said: Update: I have disabled comments until I can get this issue resolved. Hi, Can you enable it? We will test some simple code to change this 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
Rebecca365 Posted January 26, 2023 Author Share Posted January 26, 2023 Done. Comments are enabled again. <https://springboardmealplans.squarespace.com/recipes/this-is-a-sample-blog-post> rcb Link to comment
tuanphan Posted January 27, 2023 Share Posted January 27, 2023 On 1/26/2023 at 8:52 AM, Rebecca365 said: Done. Comments are enabled again. <https://springboardmealplans.squarespace.com/recipes/this-is-a-sample-blog-post> rcb Add to Settings > Advanced > Code Injection > Footer <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script> <script> $(document).ready(function(){ $("h3.comment-count span").html(function() { return $(this).html().replace("Comments", "Notes"); }); $("span.comment-btn.sqs-system-button").html(function() { return $(this).html().replace("Post Comment…", "Post"); }); }); </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
Rebecca365 Posted January 27, 2023 Author Share Posted January 27, 2023 I tried this, and it hasn't changed anything. I put in the site settings, since the "Post Blog Item Code Injection" does not include a "Footer" setting. Question: if the code could be placed in the "Post Blog Item Code Injection", would I be able to change the name of "comments" on my general blog, and remove comments on blogs in a member area? Thank you! Rebecca Link to comment
tuanphan Posted January 28, 2023 Share Posted January 28, 2023 (edited) 22 hours ago, Rebecca365 said: I tried this, and it hasn't changed anything. I put in the site settings, since the "Post Blog Item Code Injection" does not include a "Footer" setting. Question: if the code could be placed in the "Post Blog Item Code Injection", would I be able to change the name of "comments" on my general blog, and remove comments on blogs in a member area? Thank you! Rebecca No. Do not add to Post Blog Item Code Injection Add to Home > Settings > Advanced > Code Injection > You will see Header, Footer, Lock Page, Order Confirmation Page... boxes > But you need to add to Footer box Edited January 28, 2023 by tuanphan 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
Rebecca365 Posted January 28, 2023 Author Share Posted January 28, 2023 (edited) 2 hours ago, tuanphan said: Add to Home > Settings > Advanced > Code Injection > You will see Header, Footer, Lock Page, Order Confirmation Page... boxes > But you need to add to Footer box I have done that, and I don't see a change. <https://www.springboardmealplans.com/recipes/this-is-a-sample-blog-post> Rebecca Edited January 28, 2023 by Rebecca365 Link to comment
tuanphan Posted January 31, 2023 Share Posted January 31, 2023 On 1/28/2023 at 9:25 PM, Rebecca365 said: I have done that, and I don't see a change. <https://www.springboardmealplans.com/recipes/this-is-a-sample-blog-post> Rebecca Try this new code <script src="https://ajax.googleapis.com/ajax/libs/jquery/3.6.1/jquery.min.js"></script> <script> $(document).ready(function(){ setTimeout(function(){ $("h3.comment-count span").html(function() { return $(this).html().replace("Comments", "Notes"); }); $("span.comment-btn.sqs-system-button").html(function() { return $(this).html().replace("Post Comment…", "Post"); }); }, 5000); }); </script> Anemone 1 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
Rebecca365 Posted January 31, 2023 Author Share Posted January 31, 2023 This worked! But with a lag. If you check the link, it will render with the word "Comments" and then -- Boom! -- it changes itself to "Notes". What do you think? <https://www.springboardmealplans.com/recipes/this-is-a-sample-blog-post> Link to comment
Solution tuanphan Posted February 1, 2023 Solution Share Posted February 1, 2023 17 hours ago, Rebecca365 said: This worked! But with a lag. If you check the link, it will render with the word "Comments" and then -- Boom! -- it changes itself to "Notes". What do you think? <https://www.springboardmealplans.com/recipes/this-is-a-sample-blog-post> Yes. I set time to 5 seconds. You will see 5000 in the code. You can change it to 1000 or 2000 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
creedon Posted February 1, 2023 Share Posted February 1, 2023 Blog comments are lazily loaded. You need a MutationObserver, a way to watch for elements to appear on the DOM, to know when the comments show up on the DOM and then apply an effect. I know of no MO based code that currently does this on SS. tuanphan and Rebecca365 2 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
Rebecca365 Posted February 1, 2023 Author Share Posted February 1, 2023 8 hours ago, tuanphan said: Yes. I set time to 5 seconds. You will see 5000 in the code. You can change it to 1000 or 2000 I will change it to 1000, I guess. Thank you! Link to comment
derricksrandomviews Posted February 15, 2023 Share Posted February 15, 2023 (edited) If you don't necessarily want the comment count then this code should work in config/design/custom css h3.comment-count span { visibility: hidden; } h3.comment-count span:before { visibility: visible; content: "Notes"; } It works on my site, I changed comments (0) to Have a comment? Edited February 15, 2023 by derricksrandomviews Anemone and Rebecca365 2 Link to comment
Rebecca365 Posted February 17, 2023 Author Share Posted February 17, 2023 That worked, too! Thank you so much! derricksrandomviews 1 Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment