Community Forums › Forums › Archived Forums › General Discussion › How to use FileZilla
- This topic has 10 replies, 6 voices, and was last updated 9 years, 6 months ago by coralseait.
-
AuthorPosts
-
June 2, 2015 at 10:11 pm #154654Ikuko TanakaMember
I would like to edit a code via ftp because when I edit code through function.php, my WP admin black out.
I was advised to set FileZilla to do this and I did.I would like to edit the comment area of my posts.
I need to put "Join the Conversation" and "Please read my comment policy" above the name of the reader to fill in for the comment.Also, I need to link to the my comment policy page.
How can I do this through FileZilla?
Kind regards,
Ikuko
http://thehealthyblossom.comJune 3, 2015 at 12:40 am #154675Brad DaltonParticipantYes, add the code to the end of your child themes functions.php file using a code editor like Notepad++ for Windows or Text Wrangler for Mac.
June 3, 2015 at 2:59 am #154682upthinkParticipantBasically any FTP tool has a basic concept - moving files from the server to your PC (or the other way around). See this for better understanding: https://filezilla-project.org/client_screenshots.php
You will need to know the following:
Server IP/URL
FTP user
FTP password
(better to have SFTP instead of FTP - but that is another topic)Once you connect via FTP - in the server window (usually to the right side) go to wp-content/themes - then inside the child theme directory where you want to edit the functions.php
Download that function.php file to your local drive - edit(use any text editor you like - DO NOT USE MS WORD or another Word Processor) and then upload it again.
June 3, 2015 at 6:16 pm #154779Ikuko TanakaMemberThank you upthink,
I am using Mac.
I followed your instructions and I managed to transfer function.php on my PC.
Then I went to setting on FileZilla and File editing then choose "Use custom editor" as TextEdit and click ok.After that, I tried to open the function.php but I can view to edit the file.
How do I view and edit it?
Kind regards,
Ikuko
June 3, 2015 at 6:28 pm #154780Ikuko TanakaMemberThank you braddalton
Ikuko
June 3, 2015 at 9:44 pm #154793upthinkParticipantInstead of opening the file via the Filezilla editor - go the local directory where you downloaded the file and open it using some text editor
June 3, 2015 at 10:46 pm #154795MoodyRivieraMemberAs @upthink said, open the file with a text editor...*not* with Filezilla...and since you're on a Macintosh, I'll tell you that you *can* edit the file in TextEdit (If you do it correctly) but I think you'll be better off downloading and using TextWrangler, which is a free program you can download, and it's specifically made for editing CSS files, PHP files, etc. Here's a link:
http://www.barebones.com/products/textwrangler/download.htmlWhatever you do, do *not* edit the file in a word-processing program (such as Word).
*MoodyRiviera*
June 4, 2015 at 6:55 pm #154914Ikuko TanakaMemberThank you guys,
I downloaded TextWrangler and followed all the instructions. I edited the comment area on TextWrangler on my PC then go to FileZilla. I overwrote the file from the left side onto the function.php on the right side on FileZilla.
Then what do I do to upload it and see my website has been changed?
Kind regards,
Ikuko
June 4, 2015 at 7:05 pm #154918Erik D. SlaterMemberMoving the file from the left to the right is the upload bit 🙂
If you are not seeing your changes, You may need to clear down your cache. In your case, you appear to be using WP Super Cache. You may also need to refresh your browser. Of course, it could also be that your changes had no effect ...
Erik D. Slater: Digital Platform Consultant • LinkedInJune 4, 2015 at 7:08 pm #154920Ikuko TanakaMemberI just see my website. Black out!! I thought If I edit code via ftp it won't be black out.
Is this something to do with I didn't type those code. I copy and paste those code or somethings to do with permission?Kind regards,
Ikuko
June 4, 2015 at 7:59 pm #154934coralseaitMemberFileZilla will not stop you from having syntax errors and white screens of death or site crashes. Proper syntax; regardless of the text editor you use is required.
If you have not used PHP before, nor done any programming you need to brush up and learn this. It is extremely important you understand the basics before you start making changing. Always backup your functions.php or any other file you are editing BEFORE any changes. One change at a time, and test. Then repeat.
If you copied and pasted random code from the internet; there are a wide range of reasons this may not work. One very common problem is that you'll have extra php tags in your code because many code snippets include the open php tag but when you paste into functions.php you don't need it.
Another common problem is a function duplication.
To fix this we'll need much more detailed informantion
-
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.