Editing functions.php using wordpress codex. how to do the basics?
-
Hi,
I am fairly new to wordpress, and have not developed before with php. I have been trying to make some basic customizations to my initial wordpress site (current theme: twenty sixteen). I am trying to understand how to do this. I think a lot of what I want to do can be found in the wordpress codex, but how do I enter the code changes I get from the codex?
Here are some details:
For example, I want to change the label on the submit a comment button from “Post Comment” to, say. “Have Your Say.” In looking online, folks point to the wordpress codex about the comment form: https://codex.www.ads-software.com/Function_Reference/comment_form.
This has descriptions and sample code for doing this kind of thing, I think. It does not say where to enter the changes you want, but I assume it is in the functions.php file. But when I enter the code changes in the functions.php file, nothing changes.
So, following the codex, to change the comment submit button, I believe this would be the code:
$comments_args = array( 'label_submit'=>'Have Your Say', ); comment_form($comments_args);
I plop this in my functions.php, and nothing changes. The comment form still says “Post Comment”. What am I missing?
In case relevant: I am using twenty sixteen theme, and comment form is from default comment form (not jetpack–I disabled that on comments for some other stuff I was doing).
Thanks!
- The topic ‘Editing functions.php using wordpress codex. how to do the basics?’ is closed to new replies.