Navigate to Settings > Permalinks in your WordPress dashboard. Ensure you’re using a permalink structure that includes the post name. For example, the “Post name” option is good for SEO and readability.
- Go to Pages > All Pages in your WordPress dashboard.
- Find the “Contact” page and click Edit.
- Locate the “Permalink” section on the right side of the editor. This displays the current slug as “contact-2”.
- Click the “Edit” link next to the slug.
- Change the slug to “contact” (without the “-2”).
- Click the “Save Draft” button and then “Publish” to update the changes.
After changing the slug, it’s essential to redirect the old “contact-2” URL to the new “contact” URL to avoid broken links and maintain SEO value.
Add the following CSS code, replacing <code class=””>.main-navigation li a with the actual CSS class of your menu items (you can inspect your site with your browser’s developer tools to find this):
CSS
.main-navigation li a {
border-bottom: 1px solid #ccc; /* Adjust color, thickness as needed */
}
After adding this code your menu should look like this page.
-
This reply was modified 2 years, 3 months ago by hum98.