Rebecca365 Posted January 18 Share Posted January 18 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 Share Posted January 19 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 How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Rebecca365 Posted January 19 Author Share Posted January 19 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 Author Share Posted January 24 Update: I have disabled comments until I can get this issue resolved. Link to comment
tuanphan Posted January 26 Share Posted January 26 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 How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Rebecca365 Posted January 26 Author Share Posted January 26 Done. Comments are enabled again. <https://springboardmealplans.squarespace.com/recipes/this-is-a-sample-blog-post> rcb Link to comment
tuanphan Posted January 27 Share Posted January 27 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 How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Rebecca365 Posted January 27 Author Share Posted January 27 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 Share Posted January 28 (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 by tuanphan Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Rebecca365 Posted January 28 Author Share Posted January 28 (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 by Rebecca365 Link to comment
tuanphan Posted January 31 Share Posted January 31 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> Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
Rebecca365 Posted January 31 Author Share Posted January 31 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 Solution Share Posted February 1 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 How to: Setup Password & Share url - Insert Custom CSS - Page Header - Upload Custom Font - Upload File - Find Block ID - Contact Customer Care Link to comment
creedon Posted February 1 Share Posted February 1 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. Rebecca365 and tuanphan 2 Find my contributions useful? Please like, upvote, mark my answer as best , and see my profile. Thanks for your support! Link to comment
Rebecca365 Posted February 1 Author Share Posted February 1 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 Share Posted February 15 (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 by derricksrandomviews Rebecca365 1 Link to comment
Rebecca365 Posted February 17 Author Share Posted February 17 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