Through some trial and error I found the solution.
It’s far simpler than I thought.
For example, because my page is the homepage, I use this as my link in the menu:
/#one
As opposed to:
#one
And it works. It doesn’t matter what page I am on, once I click that link it takes me to the correct page and then to the correct section.
If you want to target the section of another page, just do the following:
/?page_id=21#four
Of course, this doesn’t let you have the flexibility of selecting the page name in the menu customisation page, so you have to know the pages ID for this to work.
Related Posts:
- Two Navigation Menus in Themes Produce the same menus?
- Two Navigation Menus – secondary nav is including main nav
- How to remove background image from post navigation elements?
- how to remove category nav from Bueno (WordPress Theme) header [closed]
- How to create different navigation for registered users in WooThemes Canvas?
- Most wp_nav_menu parameters ignored
- Opinions and recommendations on the best barebones base theme [closed]
- Adding admin-ajax.php to the frontend. Good or bad idea?
- Different template of products for specific category. WooCommerce
- what the best way to include images from the template’s images folder?
- How do I add support to my theme for custom menus?
- WordPress 5 / Gutenberg – theme doesn’t have featured image option showing up
- How to refresh WordPress Customizer panel upon entering a value
- Set Featured Image for Archive templates
- How do I add a new string to a .po or .pot file?
- Free/Open-Source Theme Frameworks as an Alternate to Thesis? [closed]
- can require “themefolder/includes/widgets.php” in “themefolder/functions.php” yet widgets.php doesn’t run
- Multisite: setting theme and options when a new blog is created
- How to use scss in wordpress theme?
- How to add the main style.css to my index.php?
- How to attach region identifier to a pretty url?
- Remove action within a class in a parent theme from the child theme
- How to get themes from wordpress.com per SVN? [closed]
- Edit raw HTML of the landing page
- How to move WordPress theme files into a subfolder without breaking the theme?
- remove rel=next on home page but not others
- How do you create a custom WPTouch theme?
- Added a new template file to a theme – get Call to undefined function error
- Theme broken after upgrading to WordPress 4.5, missing stylesheet?
- Defining different theme for Blog posts page
- Working with an Array inside Your Theme Options Array – Multiple Values
- WordPress Theme for Video Showcase [closed]
- How to understand a specific bit of WordPress syntax
- How to unset comment_notes_before field in WordPress comment_form
- Widgets menu does not appear under “Appearance” in dashboard
- Calling widget via function in themes files (hard code)
- Child theme not working after Parent Theme Update
- How to loop over wp_get_themes() and create an array of themes name
- Combining wordpress themes
- how to use the slide show of Skylark in showcase?
- Switching to a child theme
- CSS Start Fresh option on; main.css still being loaded [closed]
- When creating a WordPress site how can you create different versions of the site with different themes?
- Restrict access to specific widget field based on user role
- Twenty Twelve theme search returns Nothing Found
- WooThemes PremiumNews Theme jQuery Conflict with WordPress 3.2
- Finding and disabling ‘rogue’ stylesheet from header: Source Sans Pro
- after_setup_theme is called three times
- Losing all my text and entries on ColorWay Theme
- Change copyright text on the footer section [closed]
- WordPress front page empty, however, there is content on website
- How do I remove ‘Active Theme’ section from Customizer?
- Blank line before doctype
- Cannot changing login button color, have tried theme, plugins… is it GoDaddy managed?
- WordPress Baskerville 2 translation
- .PO file is found but I don’t see translations: how to debug the problem?
- Default Nav Highlight
- How To Show Different Footers For Different Post Types Pages?
- An unexpected error occurred when add theme
- Uploading new version of theme fails, folder already exists
- Posts & page twice display
- How to get ONLY the URL of the image that show_media_header returns?
- How to remove date, author and comment count from Chameleon search results page
- Twenty Ten theme – how to put a different header banner on every page
- Customizing 1 theme for multiple blogs in a multisite setup
- Unable to thread comments because of custom comments.php file
- problem with wp theme uploading to server..?
- i want multiple blog, themes and database
- Is bloginfo(‘template_directory’) generated based on WP_SITEURL and WP_HOME in the settings?
- jQuery is not defined – some theme features do not work!
- How to hide Submit a deal button on redeal aka rehub theme for non-admins?
- How can I modify the CSS only for the search results page of WordPress?
- SVG icons in Twenty Nineteen
- how do you add a gallery to the homepage without using a post or page?
- Does anyone know where to find the area to edit this text
- How do I bring a page template into a new theme with separate styling?
- Minor changes on theme per subdomain – same contents
- Remove action not working in theme
- Divi Blog Module Plugin and YOAST SEO “Primary Category”
- How to preparing theme for new users? Export ready theme
- Issues with dynamic widget in theme customizer
- WordPress sub-domain different theme
- Site assets not loading from a subdomain
- Theme Dev | Convert Template to Theme
- How to Solve the WordPress Cron Job Site Slow down Problem?
- How do I get the path to the currently in use theme’s directory?
- Pagination not working in home page
- Route to custom file
- “Template is missing” install error on non-child theme
- wordpress template page Usage [duplicate]
- No “available widgets” (wordpress 3.2.1 multisite)
- How to create a second index.php?
- Lightword Theme – only one menu item
- how to use Easy Docs theme to write a book?
- How to create an Single-Portfolio page?
- 2 WP websites same content different themes
- How is WordPress child related to Buddypress child theme
- Define a Custom Template Part As A Widget Area
- Changing Sidebar In 2023 Theme
- Table of Contents in Left Navbar [closed]