This topic is: not resolved
- This topic has 22 replies, 4 voices, and was last updated 9 years, 6 months ago by .
- The forum ‘General Discussion’ is closed to new topics and replies.
These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.
Community Forums › Forums › Archived Forums › General Discussion › FileZilla Error
Instead of the code you are trying - why dn't you try this:
add_action( 'genesis_after_entry', 'gd_add_text_in_comment_form' );
function gd_add_text_in_comment_form() {
echo 'Join the conversation. Please read my <a href="http://thehealthyblossom.com/privacy-policy">comment policy</a>';
}
(remove that early bit of code and then use this one - don't use both at the same time).
The process is the same - get the function file from Filezilla on your PC - then edit it - then move it back live.
I still don’t know how to edit the code via ftp. My host said to me my site was blacked out because I edited on function.php. I thought I edited the code through via ftp.
Just to confirm - in case it's not clear - but you should:
(1) use FTP to download the file from the server to your machine
(2) make edits to the file on your machine
(3) use FTP to upload the file from your machine to the server
Never try to edit a file directly on the server 🙂
Thank you for your help and patient.
Yes, I think I know how to download the file from the server to my PC through FillZilla. Then Make edits to the file on my PC. After that, Use FileZilla to upload the file that I edited. Then go to my website to see the changes.
Re: (remove that early bit of code and then use this one – don’t use both at the same time)
I need to make the changes twice. Do you mean like this as below?
Step1:
//* Remove comment form allowed tags
add_action( 'genesis_after_entry', 'gd_add_text_in_comment_form' );
function gd_add_text_in_comment_form() {
echo 'Join the conversation. Please read my comment policy';
}
Step2:
$defaults[‘comment_notes_before’] = ‘Joint the conversation. Please read my comment policy';
return $defaults;
I am so sorry to ask such a question. I have no idea about coding.
I am really appreciated your help.
Kind regard,
Ikuko
© 2024 WPEngine, Inc.