That’s because the current menu classes aren’t applied based on the URL but instead based on the main query.
For the homepage, instead use a homepage link block:
You can edit it just link any other nav menu item or paragraph by clicking and typing on it directly:
Related Posts:
- Making update notification functionality for my themes
- how to create a conditional content_width for a wordpress theme?
- How To Add New Option Types To Option Tree?
- Best practice for including plugins as part of a theme?
- Modular theme settings
- Where do I find the functions triggered within a hook?
- How to determine the current widget’s parent container (sidebar widget id)
- Comment form not display properly?
- How to add menu support to a theme?
- Setting up partial Right-to-Left admin interface
- Moving functionality from functions.php to classes?
- Is it possible to display the admin bar while in the Theme Customizer?
- How to Change CSS Variable value in Theme Customizer Live Preview
- Pagination & get_pages?
- Custom nav menu is created with default pages, but not hooked to theme’s custom menu location
- How to pass code from header.php to footer.php
- Move my theme style.css into a folder
- Easy WordPress theme creation tutorial? [closed]
- How do I add a post to a menu
- Demo Import changes terms ids
- how to change WordPress menu markup/classes
- Best practices: Custom theme sidebar menu – hardcode or widget?
- Is it a good idea to make whole theme widgetized?
- Gutenberg Reusable Block as part of WordPress Theme page
- How to get the URI to a theme without the domain. Example: /wp-content/themes/my-theme
- How to handle custom form submission?
- menu behavior is not as expected
- My custom theme does not load the translations
- Same ACF on two different pages
- A mystery 300px image size
- Custom Field returning Numerical Value for Image rather than URL
- which is the best way to customize nav-menu-template.php?
- wp-cli: For development, how can I activate a theme that is on the local disk but not zipped?
- Inheritance of parent theme plugin files in a child theme
- How to make a local cache of mshots images
- Why is the Page Template dropdown menu using the wrong file name?
- Display a list of certain categories by ID
- 2 localizations inside a WordPress theme
- Implementing FancyBox
- Single Page Design, Storing in Theme Options
- Child theme enqueue scripts using new functions
- Should I change text-domain of TGM library inside theme?
- Custom theme updater – random string in new theme name
- Show woocommerce categories on my theme menu styling
- “Bad element for masonry: undefined” why this error us occuring? [closed]
- Scroll to position on page for category pages only — woocommerce
- Child Theme’s style.css not loading in mobile browser
- How to Find the Page the Front Page is Using?
- My jQuery is enqueued properly. So why isn’t it working?
- Database Tables in WordPress Theme
- 3 Level Deep Navigation Menu Not Showing All Levels
- Call to require(‘../../../wp-blog-header.php’) results in 404 error?
- WordPress page/blog incorporated into static website
- wp_enqueue_script not working?
- Random white space before doctype
- Premium theme licensing of php called through AJAX
- is_single() works in plugin, not in theme?
- Do I need to create a child theme for JointsWP
- why mytheme/single-product.php works but not mytheme/woocommerce/single-product.php
- pass wordpress template directory into ajax url call
- theme-independent CSS/JS files
- What is the need for the static front page [closed]
- Do translation functions like __e() have to take strings in English in themes?
- Custom jquery not code not working in wordpress
- License of the used Bootstrap Theme is not GPL compatible
- How add built-in textarea in theme development?
- Pagination fuction in shortcode always displays on top
- Customize Option Framework
- How to include posts with a theme
- Register a custom post type as public = false, but have content appear in search engines?
- Pagination don’t work with active filters
- Theme author.php transfer
- restrain filter on get_the_excerpt to queried item in stead of current post
- Theme has disappeared
- How to display only author’s name for the current post?
- WordPress displaying two different headers, one at top and one below footer
- two col layout bootstrap 4 with one fixed col and fade in effect on image
- Styling the website via the customizer – do the changes stay after theme update?
- Alt header logo and link for specific pages
- Custom php template file only for mobile
- which template should I use for single category post?
- annoying “Confirm Form Resubmission” message
- image sizes – finding and removing
- Make page accessible from another URL
- Any way to permanently translate themes?
- Fallback dosen’t work when not using ‘menu’ attribute
- Reliable method to detect mobiles
- WordPress get number of categories
- Infinite scroll loads new posts several times
- issue displaying variations in custom template using WPeC 3.8.9.2
- How to save checkbox choice in wordpress
- How to disable edit link button bottom of the page for all users except Administrator
- Enqueue script/style with multiple GET parameters
- Is it possible to create more than one design in a WordPress theme? [closed]
- Next Post Link not working with parameters to restrict to same term
- How to install Woocommerce without plugin?
- Correct way to make a title a link
- Is there a WordPress theme or plugin with built-in user management
- Is there any filter or action hook to remove layout classes from appearing in my templates?
- How to Add Dynamic Sliders to WordPress Customizer with JavaScript