In this tutorial, we'll show you how to connect your WordPress navigation menu items directly to specific sections built with Elementor. This technique creates smooth one-page navigation, ideal for landing pages or single-page sites.
What You'll Learn
- How to add anchor links in Elementor sections
- How to link menu items to those anchors
- Tips for smooth scrolling behavior
Step 1: Set Up Section IDs in Elementor
Open your page with Elementor. Click on the section you want to link to. In the Advanced tab, locate the CSS ID field and enter a unique identifier (e.g., services). Repeat for each section you want to navigate to.
Step 2: Create Menu Items with Anchor Links
Go to Appearance > Menus. Add a custom link for each section. In the URL field, enter a hash followed by the CSS ID you set (e.g., #services). Set the link text (e.g., "Services") and add it to your menu.
Step 3: Enable Smooth Scrolling (Optional)
To enhance user experience, add smooth scrolling. You can do this via a plugin or by adding custom CSS: html { scroll-behavior: smooth; }.
Step 4: Test Your Navigation
Save your menu and view the page. Click each menu item—it should scroll smoothly to the corresponding section.
This method works without any extra plugins and is compatible with most WordPress themes. It's perfect for one-page websites or any page where you want quick access to different sections.