Wordpress Themes - WP Forum at BFA
There will be no more development for Atahualpa (or any other theme), and no support. Also no new registrations. I turned off the donation system. I may turn the forum to read only if it gets abused for spam. Unfortunately I have no time for the forum or the themes. Thanks a lot to the people who helped in all these years, especially Larry and of course: Paul. Take care and stay healthy -- Flynn, Atahualpa developer, Sep 2021

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,765 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 03:31 AM.


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