WordPress offers many themes with a navigation bar defined in a header file and modified by a style defined in a CSS file. From your WordPress dashboard, you can open these files in a text editor and either comment out the appropriate lines or change them so that your page doesn't display the bar. Before editing your WordPress files, back them up in case you need to revert your changes. Removing the navigation bar can put some themes out of alignment, but removing the navigation elements without deleting the bar preserves your page's look and feel.

Step 1

Open your WordPress administration panel, click “Appearance” and choose “Editor.” The sidebar displays your theme's HTML, PHP and CSS files, and you can view a file in the editor by selecting it from the sidebar.

Step 2

Select “styles.css” from the sidebar to edit your theme's look and feel. The lines defining your navigation bar are located near the bottom of this file. Your theme may use a class called “navcontainer,” “top-navigation” or a similar class.

Step 3

Open Notepad and copy the styles.css code into a new text file. Click inside the WordPress editor to select it, then press “Ctrl-A” to select all the text and “Ctrl-C” to copy it. Click inside the new text file and press “Ctrl-V” to paste the text into the file. Save the file as “styles.css” (without quotes, here and throughout) as backup.

Step 4

Click inside the WordPress editor to select it, then press “Ctrl-F” to open the search bar. Type “nav” in the search bar and click the “Down” arrow to find the class defining your navigation bar. The line begins with a “#” symbol and contains a list of arguments enclosed in curly braces. For example, the line may look as follows:

navcontainer { color: main-color; border: 2px gray }

Step 5

Insert the argument “display: none” inside the curly braces. For example, the new line may look as follows:

navcontainer { display: none; color: main-color; border: 2px gray }

Adding this code snippet without deleting the other arguments makes reverting your changes easier than replacing them manually or uploading your backup file.

Step 6

Click “Save” to apply your changes. The update is immediately visible to your page's visitors. If deleting the navigation bar puts your theme out of alignment, replace “display: none” with “visibility: hidden.” This argument makes the navigation bar invisible without displacing the other elements on your page. For example, the revised code may look as follows:

navcontainer { visibility: hidden; color: main-color; border: 2px gray }