Wordpress Themes - WP Forum at BFA

Wordpress Themes - WP Forum at BFA (http://forum.bytesforall.com/index.php)
-   Atahualpa 3 Wordpress theme (http://forum.bytesforall.com/forumdisplay.php?f=2)
-   -   How can I change "Leave a Reply" text (In comments box) for one specific page? (http://forum.bytesforall.com/showthread.php?t=24069)

dabeed Feb 10, 2020 05:04 PM

How can I change "Leave a Reply" text (In comments box) for one specific page?
 
I can see that the "Leave a Reply" text can be changed in comments.php, but this would change it everywhere. Also, I wouldn't want to tweak the theme files if I can avoid it.

Is there a way to change it just for one specific page, and ideally could this magic be worked by css?

Thanks much!

- David

dabeed Feb 10, 2020 06:50 PM

Ok I'm just going to change "Reply" to "Comment" on line 124 of Comments.php as instructed by Juggledad in other similar threads. Decided "Leave a Comment" would work just fine on all pages. I would, however, still be curious to hear if anyone knows how to do this with css. No biggie, though.

juggledad Feb 13, 2020 09:13 AM

You can't use CSS to cange code. You could use CSS to display one chunk of HTML while hiding another, but both chunks of code would have to exist.

for example
<div id="part-a">this is line 1</div>
<div id="part-b">this is line 2</div>

using this css
div#part-a {display:none}

would hide 'this is line 1' while showing the other like


All times are GMT -6. The time now is 05:24 PM.

Powered by vBulletin® Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.