Wordpress Themes - WP Forum at BFA
Click here to register or to donate.
Auto self-registration is not available here - far too many spammers. This forum has many, many backlinks and because of that there is an intense desire among spammers to drop their links here.

Wordpress Themes - WP Forum at BFA » WordPress Themes » Atahualpa 3 Wordpress theme »

How can I change "Leave a Reply" text (In comments box) for one specific page?


  #1  
Old Feb 10, 2020, 05:04 PM
dabeed
 
30 posts · Nov 2012
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
  #2  
Old Feb 10, 2020, 06:50 PM
dabeed
 
30 posts · Nov 2012
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.

Last edited by dabeed; Feb 10, 2020 at 06:56 PM.
  #3  
Old Feb 13, 2020, 09:13 AM
juggledad's Avatar
juggledad
 
23,743 posts · Mar 2009
OSX 10.11.5 WP 4.x Atahualpa(all) Safari, Firefox, Chrome
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
__________________
"Tell me and I forget, teach me and I may remember, involve me and I learn." - Benjamin Franklin
Juggledad | Forum Moderator/Support

Bookmarks

Tags
"leave a reply", comments

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes


Similar Threads
Thread Thread Starter Forum Replies Last Post
Remove Comment URL Box on 3.6 and change "leave a reply" to "leave a comment" MWilson Comments, trackbacks & pings 2 Feb 2, 2011 04:36 AM
[SUGGESTION] Make the "Leave a reply" text a customisable option Mikii New Versions, & Updating 0 Jun 26, 2010 04:02 AM
How to change the font of "1 comment to..." and "Leave a Reply" headers RHCdG Header configuration & styling 1 Nov 28, 2009 04:56 AM


All times are GMT -6. The time now is 10:11 AM.


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