Archived topic
How to change DEFAULT Wordpress "comment box" "placeholder text"
12 replies · Started by albabes on May 29, 2019
How to change DEFAULT Wordpress "comment box" "placeholder text"
Thanks
AL
I tried this code from wpbeginner, using SNIPPETS plugin, with with option:
Run snippet everywhere
function wpbeginner_comment_text_before($arg) {
$arg['comment_notes_before'] = "PLEASE NOTE. SHNA board members may or may not respond to posts or comments.";
return $arg;
}
add_filter('comment_form_defaults', 'wpbeginner_comment_text_before');
Hi there,
I don't believe there is default placeholder text for comment box?
https://www.screencast.com/t/QcwtsULp
Reference: https://generatepress.com/generatepress-2-3/
What am I missing?
"Enter your comments here..." is the default, though its somehow disappeared on my site.
You can see at this site:
http://alohaaz.org/04/otojoy-makes-live-music-accessible-to-all/#comment-area
Don't think that's the default - Activated a twenty series WP theme and don't see a placeholder text either.
I'll check with Tom on how to add one :)
We improved how comment form defaults are handled in GP 2.3: https://generatepress.com/generatepress-2-3/
It should make it so your initial function works.
Let me know :)
It "was" on mine, and the one I showed you?
And this one: http://tucsoncomputerdude.com/find-your-stolen-items-on-craigslist/
I think its "Settings/ Discussion" dependant, or Jetpack dependant Leo/Tom
Yup should be coming from somewhere else.
I did a fresh install with twenty series theme without any plugins and don't see a placeholder text.
You are welcome to test.
This GP site below, as stated above, had comments turned off.
I turn comments on, and it shows said text.
http://tucsoncomputerdude.com/find-your-stolen-items-on-craigslist/
The window expanding when click is definitely not WordPress' default menu system.
The code also confirmed that it's from a plugin:
https://www.screencast.com/t/hymNZfeaN
Hope this helps!
Menu? Who's talking about menus Leo?
Im taking about Comment Box, on a post, in an unclicked state.
That was a typo. I meant to say comment box.
Did you see my screen capture? That should explain everything.
You can also right-click on the comment box and use the browser inspect tool then check the CSS style. Should be able to see that they are all coming from a plugin.