{"id":4564,"date":"2020-10-04T00:56:27","date_gmt":"2020-10-04T00:56:27","guid":{"rendered":"https:\/\/readyship.co\/blog\/?p=4564"},"modified":"2021-03-08T09:37:34","modified_gmt":"2021-03-08T09:37:34","slug":"access-edit-wordpress-files","status":"publish","type":"post","link":"https:\/\/readyship.co\/blog\/access-edit-wordpress-files\/","title":{"rendered":"3 Ways to Access and Edit WordPress Files (Detailed)"},"content":{"rendered":"\n<p>At some point in your &#8220;WordPress life&#8221;, you&#8217;ll most likely need to access and edit your WordPress files to change something on your website.<\/p>\n\n\n\n<p>The most common files to edit are:<\/p>\n\n\n\n<ul><li>WordPress Core files, found in the root folder, usually named <code>public_html<\/code>:<ul><li><code>wp-config.php<\/code> &#8211; Allows you to modify parts of the WordPress configuration, such as automatically removing items from the Trash, disabling revisions, etc.<\/li><li><code>.htaccess<\/code> &#8211; An Apache server file that allows you to perform different actions at a server level, such as URL redirection, <a href=\"https:\/\/gtmetrix.com\/enable-gzip-compression.html\" target=\"_blank\" rel=\"noreferrer noopener\">enabling GZIP compression<\/a>, etc.<\/li><\/ul><\/li><li>WordPress theme files, found in a folder named after the theme, which is found in <code>\/wp-content\/themes\/<\/code>:<ul><li><code>functions.php<\/code> &#8211; Allows you to add, remove, or change different functionalities on your theme, such as removing the featured image, changing the heading element (e.g. H2) of the titles, etc.<\/li><li><code>style.css<\/code> &#8211; Allows you to add custom CSS code to change parts of your theme&#8217;s design (colors, font, etc.).<\/li><\/ul><\/li><\/ul>\n\n\n\n<p>So, in this step-by-step tutorial, I&#8217;ll show you 3 different ways to access and edit your WordPress files.<\/p>\n\n\n\n<div class=\"wp-block-group rs-toc\"><div class=\"wp-block-group__inner-container\">\n<p><strong>Contents<\/strong><\/p>\n\n\n\n<ol><li><a href=\"#notes\">Important Notes<\/a><\/li><li><a href=\"#dashboard\">How to Access and Edit Theme Files via Dashboard<\/a><\/li><li><a href=\"#cpanel\">How to Access and Edit WordPress Files via cPanel<\/a><\/li><li><a href=\"#ftp\">How to Access and Edit WordPress Files via FTP<\/a><\/li><\/ol>\n<\/div><\/div>\n\n\n\n<h2 id=\"notes\">Important Notes<\/h2>\n\n\n\n<p>In order not to repeat this in every section, I&#8217;ll just mention it once here.<\/p>\n\n\n\n<h3>Having a child theme<\/h3>\n\n\n\n<p>When you edit a WordPress theme&#8217;s files, you should do it in a <a href=\"https:\/\/developer.wordpress.org\/themes\/advanced-topics\/child-themes\/\" target=\"_blank\" rel=\"noreferrer noopener\">child theme<\/a>. <\/p>\n\n\n\n<p>If you&#8217;re making the changes directly into the parent theme, they&#8217;ll be gone with the next update, and you&#8217;ll need to add them again.<\/p>\n\n\n\n<p>Most premium WordPress themes provide a pre-made child theme when you download the files. If it&#8217;s not there, ask the developers for one.<\/p>\n\n\n\n<h3>Backing up the files or entire site<\/h3>\n\n\n\n<p>If you don&#8217;t have any experience with file editing in WordPress, it&#8217;s better to <a href=\"https:\/\/readyship.co\/blog\/backup-restore-wordpress-site-updraftplus\/\">perform a backup<\/a> before making any changes that might break your site.<\/p>\n\n\n\n<p>I&#8217;ll also show you how to back up your files individually, where possible.<\/p>\n\n\n\n<h3>Editing plugin files<\/h3>\n\n\n\n<p>Unlike WordPress themes, plugins don&#8217;t have a &#8220;child plugin&#8221; feature, so any changes that you make will go away with the next update.<\/p>\n\n\n\n<p>As a general rule, I recommend never touching a WordPress plugin&#8217;s core code unless you really know what you&#8217;re doing.<\/p>\n\n\n\n<h3>Editing WordPress Core files<\/h3>\n\n\n\n<p>Except for the <code>wp-config.php<\/code> and <code>.htaccess<\/code> files, you shouldn&#8217;t edit any other core files because the changes will be gone when WordPress updates.<\/p>\n\n\n\n<p>Those two files won&#8217;t get replaced on updates.<\/p>\n\n\n\n<h3>If the changes don&#8217;t take effect<\/h3>\n\n\n\n<p>If the code is correct and added properly, but the changes still don&#8217;t appear when you refresh your page\/site, then <a href=\"https:\/\/readyship.co\/blog\/clear-cache-wordpress-site\/\">clear any WordPress cache<\/a> that you might have from your browser, plugin, server, and\/or CDN.<\/p>\n\n\n\n<div class=\"wp-block-group rs-cta has-background\" style=\"background-color:#fafaff\"><div class=\"wp-block-group__inner-container\">\n<p class=\"has-large-font-size\">Looking to Buy or Sell WordPress Sites?<\/p>\n\n\n\n<p>At ReadyShip, we offer an all-in-one WordPress solution for those looking to start a blog or site, as well as the opportunity for WordPress developers or professionals to sell their products!<\/p>\n\n\n\n<div class=\"wp-block-buttons\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link\" href=\"https:\/\/readyship.co\/products\">Browse Sites<\/a><\/div>\n\n\n\n<div class=\"wp-block-button is-style-outline\"><a class=\"wp-block-button__link\" href=\"https:\/\/readyship.co\/blog\/start-selling\/\">Start Selling<\/a><\/div>\n<\/div>\n<\/div><\/div>\n\n\n\n<h2 id=\"dashboard\">1. How to Access and Edit Theme Files via Dashboard<\/h2>\n\n\n\n<p class=\"rs-warning\">I don&#8217;t recommend using this method unless you have access to FTP or cPanel to undo whatever might break, which could prevent you from accessing your website.<\/p>\n\n\n\n<p>I only mentioned theme files because you can&#8217;t access the WordPress core files here. For that, check the other two methods.<\/p>\n\n\n\n<h3>Step 1<\/h3>\n\n\n\n<p class=\"rs-info\">This feature might be disabled by some security plugins or code snippets.<\/p>\n\n\n\n<p>Log in to WordPress and access <strong>Appearance<\/strong> &gt; <strong>Theme Editor<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"365\" height=\"462\" src=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/appearance-theme-editor.png\" alt=\"accessing theme editor wordpress\" class=\"wp-image-4571\" srcset=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/appearance-theme-editor.png 365w, https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/appearance-theme-editor-237x300.png 237w\" sizes=\"(max-width: 365px) 100vw, 365px\" \/><\/figure><\/div>\n\n\n\n<h3>Step 2<\/h3>\n\n\n\n<p>By default, the WordPress theme that&#8217;s currently active is selected. If you want to access another theme, select it from the drop-down menu and click on <strong>Select<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"721\" height=\"504\" src=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/select-theme-edit-wordpress.png\" alt=\"select a theme to edit in wordpress\" class=\"wp-image-4572\" srcset=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/select-theme-edit-wordpress.png 721w, https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/select-theme-edit-wordpress-300x210.png 300w\" sizes=\"(max-width: 721px) 100vw, 721px\" \/><\/figure><\/div>\n\n\n\n<h3>Step 3<\/h3>\n\n\n\n<p>From the right, select the WordPress theme file that you want to edit. Make the changes and click on the <strong>Update File<\/strong> button.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"725\" height=\"484\" src=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/edit-theme-file-wordpress-editor.png\" alt=\"edit theme file wordpress editor\" class=\"wp-image-4575\" srcset=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/edit-theme-file-wordpress-editor.png 725w, https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/edit-theme-file-wordpress-editor-300x200.png 300w\" sizes=\"(max-width: 725px) 100vw, 725px\" \/><\/figure><\/div>\n\n\n\n<h2 id=\"cpanel\">2. How to Access and Edit WordPress Files via cPanel<\/h2>\n\n\n\n<p>If you&#8217;re on a Shared WordPress hosting, you most likely have cPanel.<\/p>\n\n\n\n<p>cPanel is your server&#8217;s control panel where you can perform a lot of different actions, including accessing and editing all of your WordPress files.<\/p>\n\n\n\n<p class=\"rs-info\">Depending on your host, cPanel might be a bit different due to the version used or changes that the hosting company might have made to it.<\/p>\n\n\n\n<h3>Step 1<\/h3>\n\n\n\n<p>Go to cPanel &#8211; usually by adding <code>\/cpanel<\/code> after your domain name (e.g. <code>example.com\/cpanel<\/code>) &#8211; log in using the credentials offered by your hosting, then access the <strong>File Manager<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"822\" height=\"315\" src=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/09\/file-manager-cpanel.png\" alt=\"file manager cpanel\" class=\"wp-image-4498\" srcset=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/09\/file-manager-cpanel.png 822w, https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/09\/file-manager-cpanel-300x115.png 300w, https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/09\/file-manager-cpanel-768x294.png 768w\" sizes=\"(max-width: 822px) 100vw, 822px\" \/><\/figure><\/div>\n\n\n\n<h3>Step 2<\/h3>\n\n\n\n<p>Your WordPress core files, along with the theme and plugin files, are usually found in the <code>public_html<\/code> folder.<\/p>\n\n\n\n<p class=\"rs-info\">If you&#8217;re using an add-on domain, not the main one, then the WordPress files will probably be found in a folder that has your domain name (<code>example.com<\/code>) instead of <code>public_html<\/code>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"681\" height=\"786\" src=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/public-html-wordpress-cpanel.png\" alt=\"wordpress public_html folder in cpanel\" class=\"wp-image-4583\" srcset=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/public-html-wordpress-cpanel.png 681w, https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/public-html-wordpress-cpanel-260x300.png 260w\" sizes=\"(max-width: 681px) 100vw, 681px\" \/><\/figure><\/div>\n\n\n\n<h3>Step 3<\/h3>\n\n\n\n<p>Before editing a file, download it on your drive as a backup.<\/p>\n\n\n\n<p>Right-click on it and select <strong>Download<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"681\" height=\"686\" src=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/download-functions-php-wordpress-cpanel.png\" alt=\"wordpress functions.php download in cpanel\" class=\"wp-image-4589\" srcset=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/download-functions-php-wordpress-cpanel.png 681w, https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/download-functions-php-wordpress-cpanel-298x300.png 298w, https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/download-functions-php-wordpress-cpanel-150x150.png 150w\" sizes=\"(max-width: 681px) 100vw, 681px\" \/><\/figure><\/div>\n\n\n\n<p>You also have a <strong>Download<\/strong> button up, in the toolbar.<\/p>\n\n\n\n<p>If something goes wrong, you can upload the original WordPress file you saved on your drive, by clicking the <strong>Upload<\/strong> button at the top, and it will override the edited file.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"681\" height=\"508\" src=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/upload-file-cpanel.png\" alt=\"upload file in file manager in cpanel\" class=\"wp-image-4590\" srcset=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/upload-file-cpanel.png 681w, https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/upload-file-cpanel-300x224.png 300w\" sizes=\"(max-width: 681px) 100vw, 681px\" \/><\/figure><\/div>\n\n\n\n<h3>Step 4<\/h3>\n\n\n\n<p>Now that you have a file backup, you can proceed without sweating. \ud83d\ude42<\/p>\n\n\n\n<p>So, choose the WordPress file that you want to edit, right-click on it, and select <strong>Edit<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"681\" height=\"688\" src=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/edit-functions-php-file-manager-cpanel.png\" alt=\"edit functions.php wordPress file in file manager in cpanel\" class=\"wp-image-4592\" srcset=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/edit-functions-php-file-manager-cpanel.png 681w, https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/edit-functions-php-file-manager-cpanel-297x300.png 297w\" sizes=\"(max-width: 681px) 100vw, 681px\" \/><\/figure><\/div>\n\n\n\n<p><em>You can also choose <strong>View<\/strong> if you only want to look for something without being afraid of editing it by accident.<\/em><\/p>\n\n\n\n<p>A pop-up will appear, showing you what file you&#8217;re about to edit and mentioning that you should back up the files first, which I mentioned as well at step 3.<\/p>\n\n\n\n<p>Click the <strong>Edit<\/strong> button to proceed.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"525\" height=\"366\" src=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/edit-popup-file-manager-cpanel.png\" alt=\"edit popup file manager cpanel\" class=\"wp-image-4594\" srcset=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/edit-popup-file-manager-cpanel.png 525w, https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/edit-popup-file-manager-cpanel-300x209.png 300w\" sizes=\"(max-width: 525px) 100vw, 525px\" \/><\/figure><\/div>\n\n\n\n<h3>Step 5<\/h3>\n\n\n\n<p>A file editor will appear where you can add, remove, or edit the code snippet that you want.<\/p>\n\n\n\n<p>After you&#8217;re done, click on the <strong>Save Changes<\/strong> button.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"840\" height=\"390\" src=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/edit-functions-php-cpanel-editor.png\" alt=\"edit wordpress functions.php in cpanel editor\" class=\"wp-image-4599\" srcset=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/edit-functions-php-cpanel-editor.png 840w, https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/edit-functions-php-cpanel-editor-300x139.png 300w, https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/edit-functions-php-cpanel-editor-768x357.png 768w\" sizes=\"(max-width: 840px) 100vw, 840px\" \/><\/figure><\/div>\n\n\n\n<h2 id=\"ftp\">3. How to Access and Edit WordPress Files via FTP<\/h2>\n\n\n\n<p>When you&#8217;re using Managed hosts that are more performant and optimized, such as the one used on <a href=\"https:\/\/readyship.co\/\" target=\"_blank\" rel=\"noreferrer noopener\">ReadyShip<\/a> for its WordPress customers, you won&#8217;t have cPanel because it eats up server resources and affects its performance.<\/p>\n\n\n\n<p>So, in order to access and edit your WordPress files, you&#8217;ll need to do it via <a href=\"https:\/\/en.wikipedia.org\/wiki\/File_Transfer_Protocol\" target=\"_blank\" rel=\"noreferrer noopener\">FTP (File Transfer Protocol)<\/a>, using an FTP client.<\/p>\n\n\n\n<h3>Step 1<\/h3>\n\n\n\n<p>Download and install <a href=\"https:\/\/filezilla-project.org\/download.php?type=client\" target=\"_blank\" rel=\"noreferrer noopener\">FileZilla<\/a>, the FTP client I recommend, on your computer.<\/p>\n\n\n\n<p>It offers installation files for both Windows and macOS.<\/p>\n\n\n\n<h3>Step 2<\/h3>\n\n\n\n<p>After you&#8217;ve installed it, open it up. <\/p>\n\n\n\n<p>At the top, you&#8217;ll have a <strong>Quickconnect<\/strong> feature that will allow you to quickly connect to your server&#8217;s FTP.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"734\" height=\"119\" src=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/09\/connect-filezilla.png\" alt=\"filezilla quickconnect\" class=\"wp-image-4518\" srcset=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/09\/connect-filezilla.png 734w, https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/09\/connect-filezilla-300x49.png 300w\" sizes=\"(max-width: 734px) 100vw, 734px\" \/><\/figure><\/div>\n\n\n\n<p>The login info that you need to add have to be provided by your host:<\/p>\n\n\n\n<ul><li><strong>Host<\/strong> &#8211; Usually, it&#8217;s <code>ftp.example.com<\/code> or <code>sftp:\/\/example.com<\/code> if using <a href=\"https:\/\/en.wikipedia.org\/wiki\/SSH_File_Transfer_Protocol\" target=\"_blank\" rel=\"noreferrer noopener\">SFTP<\/a> instead of FTP. You&#8217;ll have to replace <code>example.com<\/code> with your own domain.<\/li><li><strong>Username<\/strong> and <strong>Password<\/strong> are self-explanatory.<\/li><li><strong>Port<\/strong> &#8211; Leave it blank for the 21 default port unless your host requires something else.<\/li><\/ul>\n\n\n\n<p>Alternatively, you can add the site to the <strong>Site Manager<\/strong> by going to <strong>File<\/strong> &gt; <strong>Site Manager<\/strong>. That way, you don&#8217;t have to add the login info every time in Quickconnect.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"840\" height=\"534\" src=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/09\/site-manager-filezilla.png\" alt=\"site manager filezilla\" class=\"wp-image-4522\" srcset=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/09\/site-manager-filezilla.png 840w, https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/09\/site-manager-filezilla-300x191.png 300w, https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/09\/site-manager-filezilla-768x488.png 768w\" sizes=\"(max-width: 840px) 100vw, 840px\" \/><\/figure><\/div>\n\n\n\n<ul><li>Click on <strong>New Site<\/strong>;<\/li><li>Add a name for the site;<\/li><li>Choose <strong>FTP<\/strong> or <strong>SFTP<\/strong> as the <strong>Protocol<\/strong>;<\/li><li>Add the <strong>Host<\/strong> and <strong>Port<\/strong> as discussed above;<\/li><li>Add the <strong>User<\/strong> and <strong>Password<\/strong>;<\/li><li>Click on <strong>Connect<\/strong>.<\/li><\/ul>\n\n\n\n<p>Leave everything as is unless instructed otherwise by the hosting company.<\/p>\n\n\n\n<h3>Step 3<\/h3>\n\n\n\n<p>After you&#8217;ve connected to the FTP, your WordPress files will appear on the right, under <strong>Remote site:<\/strong>. Underneath, in the <strong>Filename<\/strong> section, the subfolders and files will appear.<\/p>\n\n\n\n<p>On the left, the local files from your drive will appear.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"710\" height=\"500\" src=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/access-wordpress-files-ftp-filezilla.png\" alt=\"access wordpress files via FTP using filezilla\" class=\"wp-image-4608\" srcset=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/access-wordpress-files-ftp-filezilla.png 710w, https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/access-wordpress-files-ftp-filezilla-300x211.png 300w\" sizes=\"(max-width: 710px) 100vw, 710px\" \/><\/figure><\/div>\n\n\n\n<p>On Managed hosts, there&#8217;s a chance that your WordPress files won&#8217;t be found in the <code>public_html<\/code> folder.<\/p>\n\n\n\n<p>You can see from my screenshot that one of the <a href=\"https:\/\/readyship.co\/\">ready-made WordPress sites<\/a> that I have on <a href=\"https:\/\/readyship.co\/products\">ReadyShip&#8217;s marketplace<\/a>, has its files in a folder called <code>wordpress<\/code>.<\/p>\n\n\n\n<h3>Step 4<\/h3>\n\n\n\n<p>Before editing anything, back up your file by right-clicking on it and selecting <strong>Download<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"428\" height=\"446\" src=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/download-filezilla-file.png\" alt=\"download filezilla WordPress file\" class=\"wp-image-4611\" srcset=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/download-filezilla-file.png 428w, https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/download-filezilla-file-288x300.png 288w\" sizes=\"(max-width: 428px) 100vw, 428px\" \/><\/figure><\/div>\n\n\n\n<p>Now, if things go south, you can upload the original WordPress file, replacing the edited one.<\/p>\n\n\n\n<p>To do that, search for your saved file under <strong>Local site:<\/strong>, then click, hold, and drag it to the folder on the right, where your WordPress file is.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"682\" height=\"392\" src=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/upload-file-filezilla.png\" alt=\"upload functions.php wordpress file in filezilla\" class=\"wp-image-4613\" srcset=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/upload-file-filezilla.png 682w, https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/upload-file-filezilla-300x172.png 300w\" sizes=\"(max-width: 682px) 100vw, 682px\" \/><\/figure><\/div>\n\n\n\n<h3>Step 5<\/h3>\n\n\n\n<p>Now that you can safely edit the WordPress file, right-click on it and select <strong>View\/Edit<\/strong>.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"428\" height=\"464\" src=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/view-edit-wordpress-file-filezilla.png\" alt=\"edit wordpress file in filezilla\" class=\"wp-image-4615\" srcset=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/view-edit-wordpress-file-filezilla.png 428w, https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/view-edit-wordpress-file-filezilla-277x300.png 277w\" sizes=\"(max-width: 428px) 100vw, 428px\" \/><\/figure><\/div>\n\n\n\n<p>In Windows, by default, the file will be opened with Notepad. I assume it opens with TextEdit in macOS.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" width=\"788\" height=\"530\" src=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/functions-php-pop-up-filezilla-1.png\" alt=\"edit wordpress functions.php in notepad\" class=\"wp-image-4617\" srcset=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/functions-php-pop-up-filezilla-1.png 788w, https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/functions-php-pop-up-filezilla-1-300x202.png 300w, https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/functions-php-pop-up-filezilla-1-768x517.png 768w\" sizes=\"(max-width: 788px) 100vw, 788px\" \/><\/figure>\n\n\n\n<p>Once you&#8217;re done editing the WordPress file, click on <strong>File<\/strong> &gt; <strong>Save<\/strong> to save it.<\/p>\n\n\n\n<p>A confirmation pop-up will appear to let you know what file you&#8217;ve just edited. Click <strong>Yes<\/strong> if everything is correct.<\/p>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"658\" height=\"232\" src=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/filezilla-editing-popup.png\" alt=\"filezilla edit confirmation pop-up\" class=\"wp-image-4620\" srcset=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/filezilla-editing-popup.png 658w, https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/filezilla-editing-popup-300x106.png 300w\" sizes=\"(max-width: 658px) 100vw, 658px\" \/><\/figure><\/div>\n\n\n\n<h3>Step 6<\/h3>\n\n\n\n<p>Check your <strong>Status<\/strong> above.<\/p>\n\n\n\n<p>If everything worked fine, a success status will appear:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>File transfer successful, transferred 551 bytes in 1 second<\/code><\/pre>\n\n\n\n<div class=\"wp-block-image\"><figure class=\"aligncenter size-full\"><img loading=\"lazy\" width=\"544\" height=\"306\" src=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/filezilla-success-transfer.png\" alt=\"filezilla file transfer successful\" class=\"wp-image-4622\" srcset=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/filezilla-success-transfer.png 544w, https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/filezilla-success-transfer-300x169.png 300w\" sizes=\"(max-width: 544px) 100vw, 544px\" \/><\/figure><\/div>\n\n\n\n<div class=\"wp-block-group rs-cta has-background\" style=\"background-color:#fafaff\"><div class=\"wp-block-group__inner-container\">\n<p class=\"has-large-font-size\">Looking to Buy or Sell WordPress Sites?<\/p>\n\n\n\n<p>At ReadyShip, we offer an all-in-one WordPress solution for those looking to start a blog or site, as well as the opportunity for WordPress developers or professionals to sell their products!<\/p>\n\n\n\n<div class=\"wp-block-buttons\">\n<div class=\"wp-block-button\"><a class=\"wp-block-button__link\" href=\"https:\/\/readyship.co\/products\">Browse Sites<\/a><\/div>\n\n\n\n<div class=\"wp-block-button is-style-outline\"><a class=\"wp-block-button__link\" href=\"https:\/\/readyship.co\/blog\/start-selling\/\">Start Selling<\/a><\/div>\n<\/div>\n<\/div><\/div>\n\n\n\n<h2>The End<\/h2>\n\n\n\n<p>Accessing and editing WordPress files can be quite tricky for a beginner, so I hope that my tutorial was comprehensive enough to simplify the process for you.<\/p>\n\n\n\n<p>If you have any questions or want to pitch in, feel free to leave a comment.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>At some point in your &#8220;WordPress life&#8221;, you&#8217;ll most likely need to access and edit your WordPress files to change something on your website. The most common files to edit are: WordPress Core files, found in the root folder, usually named public_html: wp-config.php &#8211; Allows you to modify parts of the WordPress configuration, such as automatically removing items from the Trash, disabling revisions, etc. .htaccess &#8211; An Apache server file that allows you to perform different actions at a server level, such as URL redirection, enabling GZIP compression, etc. WordPress theme files, found in a folder named after the theme, which is found in \/wp-content\/themes\/: functions.php &#8211; Allows you to [&hellip;]<\/p>\n","protected":false},"author":9,"featured_media":4627,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"kt_blocks_editor_width":""},"categories":[18],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v15.2 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>3 Ways to Access and Edit WordPress Files (Detailed) : Ready-Made WordPress Marketplace - ReadyShip<\/title>\n<meta name=\"description\" content=\"Accessing and editing WordPress files can be tricky for a beginner. So, read this step-by-step tutorial to simplify the process!\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/readyship.co\/blog\/access-edit-wordpress-files\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"3 Ways to Access and Edit WordPress Files (Detailed) : Ready-Made WordPress Marketplace - ReadyShip\" \/>\n<meta property=\"og:description\" content=\"Accessing and editing WordPress files can be tricky for a beginner. So, read this step-by-step tutorial to simplify the process!\" \/>\n<meta property=\"og:url\" content=\"https:\/\/readyship.co\/blog\/access-edit-wordpress-files\/\" \/>\n<meta property=\"og:site_name\" content=\"Ready-Made WordPress Marketplace - ReadyShip\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/ReadyShip\" \/>\n<meta property=\"article:published_time\" content=\"2020-10-04T00:56:27+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2021-03-08T09:37:34+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/folder-server.png\" \/>\n\t<meta property=\"og:image:width\" content=\"980\" \/>\n\t<meta property=\"og:image:height\" content=\"551\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@readyshipco\" \/>\n<meta name=\"twitter:site\" content=\"@readyshipco\" \/>\n<meta name=\"twitter:label1\" value=\"Written by\">\n\t<meta name=\"twitter:data1\" value=\"Radu\">\n\t<meta name=\"twitter:label2\" value=\"Est. reading time\">\n\t<meta name=\"twitter:data2\" value=\"6 minutes\">\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https:\/\/readyship.co\/blog\/#organization\",\"name\":\"Readyship\",\"url\":\"https:\/\/readyship.co\/blog\/\",\"sameAs\":[\"https:\/\/www.facebook.com\/ReadyShip\",\"https:\/\/twitter.com\/readyshipco\"],\"logo\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/readyship.co\/blog\/#logo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2019\/01\/readyship_logo_icon.png\",\"width\":201,\"height\":201,\"caption\":\"Readyship\"},\"image\":{\"@id\":\"https:\/\/readyship.co\/blog\/#logo\"}},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/readyship.co\/blog\/#website\",\"url\":\"https:\/\/readyship.co\/blog\/\",\"name\":\"Readship: WordPress Websites with the Best Hosting\",\"description\":\"Buy\/Sell Subscription Marketplace of beautiful designed WordPress sites with managed hosting, SSL, CDN, 24\/7 supports.\",\"publisher\":{\"@id\":\"https:\/\/readyship.co\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/readyship.co\/blog\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/readyship.co\/blog\/access-edit-wordpress-files\/#primaryimage\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/readyship.co\/blog\/wp-content\/uploads\/2020\/10\/folder-server.png\",\"width\":980,\"height\":551,\"caption\":\"folder on server\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/readyship.co\/blog\/access-edit-wordpress-files\/#webpage\",\"url\":\"https:\/\/readyship.co\/blog\/access-edit-wordpress-files\/\",\"name\":\"3 Ways to Access and Edit WordPress Files (Detailed) : Ready-Made WordPress Marketplace - ReadyShip\",\"isPartOf\":{\"@id\":\"https:\/\/readyship.co\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/readyship.co\/blog\/access-edit-wordpress-files\/#primaryimage\"},\"datePublished\":\"2020-10-04T00:56:27+00:00\",\"dateModified\":\"2021-03-08T09:37:34+00:00\",\"description\":\"Accessing and editing WordPress files can be tricky for a beginner. So, read this step-by-step tutorial to simplify the process!\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/readyship.co\/blog\/access-edit-wordpress-files\/\"]}]},{\"@type\":\"Article\",\"@id\":\"https:\/\/readyship.co\/blog\/access-edit-wordpress-files\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/readyship.co\/blog\/access-edit-wordpress-files\/#webpage\"},\"author\":{\"@id\":\"https:\/\/readyship.co\/blog\/#\/schema\/person\/092d749a9bb9e9cb2af8f2532d8e5b45\"},\"headline\":\"3 Ways to Access and Edit WordPress Files (Detailed)\",\"datePublished\":\"2020-10-04T00:56:27+00:00\",\"dateModified\":\"2021-03-08T09:37:34+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/readyship.co\/blog\/access-edit-wordpress-files\/#webpage\"},\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/readyship.co\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/readyship.co\/blog\/access-edit-wordpress-files\/#primaryimage\"},\"articleSection\":\"WordPress Tutorials\",\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/readyship.co\/blog\/access-edit-wordpress-files\/#respond\"]}]},{\"@type\":\"Person\",\"@id\":\"https:\/\/readyship.co\/blog\/#\/schema\/person\/092d749a9bb9e9cb2af8f2532d8e5b45\",\"name\":\"Radu\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/readyship.co\/blog\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/fb19726677ad7e3b932bf8b0d9ac7094?s=96&d=mm&r=g\",\"caption\":\"Radu\"},\"description\":\"Hey! I'm Radu, and I've been working with WordPress at personal and professional levels for over 8 years now. I'm a seller on ReadyShip, and I'm also writing posts for their blog, which I hope you'll like. You can find more about me at Radu.link. I'm also quietly on Twitter @RaduWP.\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/readyship.co\/blog\/wp-json\/wp\/v2\/posts\/4564"}],"collection":[{"href":"https:\/\/readyship.co\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/readyship.co\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/readyship.co\/blog\/wp-json\/wp\/v2\/users\/9"}],"replies":[{"embeddable":true,"href":"https:\/\/readyship.co\/blog\/wp-json\/wp\/v2\/comments?post=4564"}],"version-history":[{"count":2,"href":"https:\/\/readyship.co\/blog\/wp-json\/wp\/v2\/posts\/4564\/revisions"}],"predecessor-version":[{"id":6378,"href":"https:\/\/readyship.co\/blog\/wp-json\/wp\/v2\/posts\/4564\/revisions\/6378"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/readyship.co\/blog\/wp-json\/wp\/v2\/media\/4627"}],"wp:attachment":[{"href":"https:\/\/readyship.co\/blog\/wp-json\/wp\/v2\/media?parent=4564"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/readyship.co\/blog\/wp-json\/wp\/v2\/categories?post=4564"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/readyship.co\/blog\/wp-json\/wp\/v2\/tags?post=4564"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}