ACHK Posted June 17, 2023 Posted June 17, 2023 I am having trouble changing the "Post Comment" button without affecting the style settings of the primary button (see screenshot and html code). I managed to fix the "Preview" link with the following code but didn't work on the "Post Comment" button: .squarespace-comments .comment-btn-wrapper .btn-text { font-family: 'montserrat'; font-size: 16px; color: #C171A7; padding: 1rem .5rem; } I would like to only change this button to NOT inherit the primary button design settings (as it changes other buttons using this design on the site), but without using a ".comment-btn:after" code (that messed up the spacing). The changes I'd like to make are: - Remove border-width: 0px; - Adjust padding: 1 rem .5rem; - Change font-weight: 400; - Change text to / content: "Post Comment" (no ellipsis) Appreciate anyone that can help! Thanks!
tuanphan Posted June 20, 2023 Posted June 20, 2023 Can you share link to post in screenshot? We can check 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!)
ACHK Posted June 21, 2023 Author Posted June 21, 2023 Thanks! URL: https://grasshopper-snail-glt4.squarespace.com/writing/leadership-in-the-post-moneyball-era?p Password: test_help I noticed the same happened with the "Post Reply" comment.
Solution tuanphan Posted June 23, 2023 Solution Posted June 23, 2023 Use this code span.comment-btn.sqs-system-button.sqs-editable-button-font.sqs-editable-button-shape.sqs-button-element--primary { font-family: 'montserrat' !important; font-size: 0 !important; color: #C171A7; padding: 1rem .5rem !important; border-radius: 0 !important; } span.comment-btn.sqs-system-button.sqs-editable-button-font.sqs-editable-button-shape.sqs-button-element--primary:before { content: "Post Comment"; font-size: 16px !important; } 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!)
ACHK Posted July 1, 2023 Author Posted July 1, 2023 Thanks so much! I changed the "border-radius" to "border-width" and it worked great! tuanphan 1
_Zander_ Posted September 20, 2023 Posted September 20, 2023 I just used the above code to change the font color of my "post comment" button, which was white and not showing up on a white background. Thanks to you both!
Kristina15 Posted May 3 Posted May 3 I had tried so many other tutorials on youtube and none were working to customise the button in the comment section, but this was perfect! thank you 😀
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment