How To Fix Can’t Change WordPress Website Address – Greyed Out URLs

Are your WordPress Address (URL) and WordPress Site Address (URL) greyed out? This step-by-step tutorial shows you how to fix this issue.

How To Fix Can't Change WordPress Website Address - Greyed Out URLsThis tutorial is part of our FREE WordPress Management training and WordPress Troubleshooting tutorial series.

In this series of step-by-step tutorials, we show you how to troubleshoot and fix common WordPress errors.

If you plan to move your WordPress installation to another directory or change your website from ‘http’ to ‘https’, you will need to edit the URLs in your Settings > General Settings section.

If these fields are greyed out, however, the fields will be uneditable  …

WordPress General Settings - Greyed out URLs

(WordPress General Settings – Greyed out URLs)

If you find that your WordPress Address (URL) and Site Address (URL) are greyed out on your Settings > General Settings section, the step-by-step tutorial below will show you how to easily fix this issue.

For help configuring your General Settings section, see this tutorial:

Important

Important: Always do a backup of your WordPress site (files and data) before modifying any files or performing any upgrades or installations! 

If you don’t want to back up your files yourself, then get professional WordPress support services, or use a WordPress backup plugin.

How To Fix Can’t Change WordPress Website Address – Greyed Out URLs

Greyed out WordPress Address and Site Address URLs can be caused when someone moves or clones a WordPress site but forgets to delete a couple of lines of code or the migration process is interrupted, making the fields uneditable in the General Settings section …

WordPress General Settings - Greyed out URLs

(WordPress General Settings – Greyed out URLs)

To fix this issue, you will need to edit the wp-config.php file in your WordPress installation, either using FTP software, or File Manager in cPanel.

For this tutorial, we’ll use File Manager in cPanel.

How To Edit wp-config.php File Using cPanel File Manager

If your WordPress site is hosted on a server with cPanel installed, log into your cPanel control area and click on File Manager (Files > File Manager) …

cPanel Files - File Manager

(cPanel Files – File Manager)

Most WordPress installations are found inside the ‘public_html’ directory. Double-click on ‘public_html’ to open the directory folder …

cPanel File Manager - public_html directory

(cPanel File Manager – public_html directory)

Locate and select the wp-config.php file …

wp-config.php file

(wp-config.php file)

With wp-config.php selected, click on Edit to open the file (note: we recommend making a backup of the file before editing. To do this, select ‘Download’ first and save a copy of the file to your hard drive) …

File Manager - Edit function

(File Manager – Edit function)

A warning dialog window may pop up reminding you to back up the original file. Click on ‘Edit’ to proceed …

Edit dialog window

(Edit dialog window)

Scroll down through the code in this file until you find the two lines shown below (define ‘WP HOME’ and define ‘WP SITEURL’). The ‘yourdomain.com’ URLs should display your actual domain …

Find these two lines in wp-config.php

(Find these two lines in wp-config.php)

Select only these two lines inside the wp-config.php file, nothing else …

Select define 'WP HOME' and define 'WP SITEURL'

(Select define ‘WP HOME’ and define ‘WP SITEURL’)

Delete only these two lines, nothing else …

Delete define 'WP HOME' and define 'WP SITEURL'

(Delete define ‘WP HOME’ and define ‘WP SITEURL’)

After deleting these two lines of code, the section of your wp-config.php file should look like the screenshot below …

wp-config.php file with define 'WP HOME' and define 'WP SITEURL' lines removed

(wp-config.php file with define ‘WP HOME’ and define ‘WP SITEURL’ lines removed)

Click the ‘Save Changes’ button to save and update your wp-config.php file and then click ‘Close’ to exit the editing window in File Manager …

Save changes in your wp-config.php file

(Save changes in your wp-config.php file)

Log out of cPanel and log into your WordPress site’s admin area, then click on Settings > General in the main menu. The WordPress Address (URL) and Site Address (URL) fields should no longer be greyed out, but restored to normal and editable once again …

WordPress Address (URL) and Site Address (URL) fields are no longer greyed out

(WordPress Address (URL) and Site Address (URL) fields are no longer greyed out)

Important

The above should fix this issue in most instances. If you are still experiencing issues with greyed out URLs, contact your website developer or web host for help.

Congratulations! Now you know how to fix the issue of greyed out URLs preventing you from changing your WordPress site address URLs in the General Settings section.

How To Fix Can't Change WordPress Website Address - Greyed Out URLs

More WordPress Troubleshooting Tutorials

Check out the tutorials in the section below if you experience additional issues with WordPress:

***

"Your training is the best in the world! It is simple, yet detailed, direct, understandable, memorable, and complete." Andrea Adams, FinancialJourney.org

***

Recommended Video Courses For WordPress Users

How To Optimize WordPressHow To Optimize WordPress

Learn how to optimize your WordPress site and improve your page loading speed.

More info: How To Optimize WordPress

Recommended Video Courses For WordPress Users

How To Use cPanelHow To Use cPanel

cPanel is a powerful and simple-to-use web hosting management software application that gives website owners the ability to quickly and easily manage their servers and websites using a simple and intuitive dashboard.

This video course will teach you how to use the main features of cPanel to manage your web hosting.

More info: How To Use cPanel

Recommended Video Courses For WordPress Users

How To Use FTPHow To Use FTP

This video course shows you how to use FTP (File Transfer Protocol) to transfer and upload files between your hard drive and your server using a free FTP program called Filezilla.

More info: How To Use FTP

Recommended Video Courses For WordPress Users

Google ToolsGoogle Tools

This video course will help you learn the basics of using Google Tools like Google Analytics and Gmail.

More info: Google Tools

Recommended Video Courses For WordPress Users

How To Install, Set Up & Use WordPress MultisiteHow To Install, Set Up & Use WordPress Multisite

Learn how to quickly and securely set up an online community of websites or blogs using the powerful WordPress Multisite feature.

More info: WordPress Multisite

Recommended Video Courses For WordPress Users

Using Password ManagersUsing Password Managers

Password Managers provide an easy and secure way to keep track of all your passwords. This video course shows you how to use two FREE powerful password management tools.

More info: Using Password Managers

Recommended Video Courses For WordPress Users

How To Back Up & Restore WordPress SitesHow To Back Up & Restore WordPress Sites

Learn how to safely and automatically backup your WordPress files and database and how to easily restore your WordPress site if something were to happen.

More info: How To Back Up & Restore WordPress Sites

Recommended Video Courses For WordPress Users

How To Set Up WordPress On LocalhostHow To Set Up WordPress On Localhost

Learn how to install, set up, and locally host a fully functioning WordPress site on your computer.

More info: How To Set Up WordPress On Localhost

Recommended Video Courses For WordPress Users

WordPress SecurityWordPress Security

Learn how to keep your WordPress site or blog secure and protected from malware, hackers and brute-force attacks.

More info: WordPress Security

Recommended Video Courses For WordPress Users

How To Set Up A Forum On WordPressHow To Set Up A Forum On WordPress

Learn how to set up a forum for your visitors, prospects, customers, members, or affiliates using WordPress.

More info: How To Set Up A Forum On WordPress

Author: Martin Aranovitch

Martin Aranovitch is the founder of WPCompendium.org and the author of The Small Business Digital Manager. WPCompendium.org provides hundreds of FREE tutorials that show you how to use WordPress to grow your business online with no coding skills required! Get our FREE "101+ WordPress Tips, Tricks & Hacks For Non-Techies" e-course with loads of useful WordPress tips!

Originally published as How To Fix Can’t Change WordPress Website Address – Greyed Out URLs.