change post comments heading
-
I would like to change “Leave a Reply” on the comments section of my posts to “Thank you.” I cannot find the code. The theme is Zuki.
Thanks for your help.
The blog I need help with is: (visible only to logged in users)
-
This is what I’ve come up with so far, but it’s not working.
h3#reply-title-comment-reply-title {
“Thank you”;
}What am I doing wrong?
-
Hi
Your code is in the right path, but do not respect the canonic syntax :) I suggest you to take a look at https://en.support.wordpress.com/custom-design/css-basics/
First you need to select the fragment of your page you want to affect the changes. In your case it is enough with h3#reply-title. Anyway, you cannot directly change text of an element by using CSS, but a turnaround can be found.
As there are two pseudoelements called before and after with an interesting property called content, you can add text after or before “Leave a Reply”. In addition you can hide this “Leave a Reply” message, so the result is pretty the same.
h3#reply-title {visibility:hidden !important;} h3#reply-title:before {content: "Thank you"; visibility:visible;}In this case, this solution works. But you should take into account that visibility:hidden keep the space for the ‘Leave a Reply’ message and if you put a text longer than ‘Thanks you’ you could have an ugly new line effect.
If you want to check what I mean (And see this gap used to hide the ‘Leave a Reply’ text), you can add a message before, and another after:h3#reply-title {visibility:hidden !important;}
h3#reply-title:before {content: “Thank you”; visibility:visible;}
h3#reply-title:after {content: “End message”; visibility:visible;}I hope this helps you. Enjoy blogging!
-
Thank you so much, Raulanton. It works perfectly. I’m a bumbler on this css thing, but I’m learning, thanks to you and all the other wonderful WordPress helpers.
-
- The topic ‘change post comments heading’ is closed to new replies.