Site icon Hip-Hop Website Design and Development

Change "No Comments" hyperlink to "My String" on Weblog Publish (Discover Snippet in Code or use CSS, PHP Answer)

I am making an attempt to interchange the usual "No Comments" hyperlink on weblog posts to "Leave a Comment." I am utilizing the Sinatra theme.

  1. I can not discover the code that creates this textual content. So, I am questioning the place it’s. That may be easy to interchange in my baby theme.

  2. I’ve tried CSS utilizing pseudo-elements like this to no avail:

a.comments-link:after {
content material: ‘Go away a Remark’;
}

That provides the textual content in the suitable place however does not take away the "No Comments" textual content. It additionally, if profitable, would wipe out the "1 Comment" textual content on posts with a remark.

  1. I do not know how to do that in PHP. Any ideas can be appreciated.

Thanks for any assist you possibly can supply with this.