Since noone responded, here’s my solution:
I copied my menubar from header.php into a new file called menubar.php and called that file with include(“menubar.php”);
Related Posts:
- Check if a menu is empty?
- renaming an admin menu item with decimal array index number
- Secondary navigation menu on one page
- Remove submenu item from list
- WP Admin Bar – Get current theme name as custom menu title
- Adding first / last CSS classes to menus
- How to fix the admin menu margin-top bug in WordPress 5.5?
- Get the php template file from other theme folder
- how to put the logo in the center of other items in the navigation bar
- Hide a menu-item and its submenus and display a ‘Log in’ link if the user is logged out
- The best way to customize “nav-menu-template.php” to add if the ‘link_before’ is “checkbox”
- Can we have a php “page” without a WordPress “page”?
- wp_delete_auto_drafts() deletes links in menus
- Replacing the NavWalker dropdown element
- How to add specific menu on a specific page or pages
- Categories Template Assistance
- How to Add a Link to the Drop-Down User Menu in the Admin Bar?
- WordPress menu deletes when trying to add a hook
- Logout and redirect using the WP Menu
- Unable to set right time in admin and frontend template
- Easiest way to show total number of subpages
- Creating new menu item
- Programmatically create menu with custom link
- Custom Loop through category menu to include sub categories
- selected menu item
- Add a Second Menu to a theme that only support 1 menu
- Custom excerpt function re-factoring
- Inject PHP code into “sidebar-content” – code before my WooCommerce sidebar widget?
- How to display user nickname (not display name) in PHP template?
- Custom Template 404 for specific custom post type
- Custom field value not saving when it contains a URL?
- Add itemprop Schema.org Markup to li Elements in wp_nav_menu
- Why use the Settings API over a new administration menu?
- Show comments menu in dashboard only if the site has comment
- Trouble creating conditional PHP for nav menu items with children for custom Walker
- Count top level menu items
- create a select input with menus created on a custom options page
- creating a second image attachment template?
- How to show single category archive
- Issues getting PHP to display in category pages
- Enable custom logo upload if logo is not in header
- Remove class in nav_menu_link_attibutes filter
- WordPress Quick Question . How to Get Parent Link in Submenu in My Code
- Detecting classes, adding widgets, and adding divs in with a Nav Walker
- Woocommerce Show Single Product on Homepage
- Is the “_s” on this `sprintf(__(‘Page %s’, ‘_s’), max($paged, $page))` just refer to a text domain?
- Show a different code on front page to other pages
- Does wordpress templates always in files or in database?
- Add item to top of menu using a filter in functions.php
- Adding wrapper elements in the_date() like in the_title()?
- Adding PHP in the menu
- How to get all author posts outside of author templates
- How do I define a lookup table that will work across all PHP elements of the template?
- persist a variable set in header.php all the way down to footer.php
- Automatically add images to a menu
- Why does the Woocommerce grouped template prints the unpublished products?
- Advice on creating a WP Archive Template with Custom Taxonomy (get_term_meta)
- How to render a block from php template
- admin-ajax GET response bad request
- Override Admin menu icon
- How to suppress template-parts in undescores?
- Need help with pagination
- How do I query a single data value from the wp_metadata table?
- Conditional string comparison failing for basename/slug
- How can I use custom menus with a Bootstrap WordPress theme?
- Adding Additional Variables on Menus Page
- How to add new CSS file to new PHP file
- Custom navigation menu with awsAccordion
- Admin Menu new tab external link
- Some problems calling a function into sprintf() inside functions.php template file [closed]
- Dynamic Menu drops pages?
- Class for Selected Menu using wp_nav_menu
- How to create Loop code for Menu using WordPress?
- Integrate admin plugin into template. Very interesant (live search + autocomplete with wp rest api, in vanilla js)
- Featured image in menu wordpres
- Display articles with a different template in the home page | Solved |
- How to set Nav as a default menu in wordpress
- Converting Array to String Issue [closed]
- ACF – Custom image for Product Tags not displaying
- PHP warning with code for nav menu walker [duplicate]
- Add element after navigation element title don’t works like I expect
- String replace for Login/Logout concatenation problem in menu
- Bring Font Awesome icons inside menu A tags
- What syntax is this? “{{post.price}}”
- Display specific main Sub Nav on Woocommerce product pages
- Adding button to wordpress menu
- Access methods in plugin template
- wp_nav_menu prints children with parent name
- Create dynamic content from one WP page to multiple other pages
- admin menu naming
- why is this content-template not showing any of my blog-entries?
- How to get the count for each taxonomy term
- PHP code rendered in HTML
- get_permalink returning first letter
- Submenu opened problem
- Custom Archive Page
- php “use” not working in template [closed]
- Twig+WordPress how to use array arguments inside a function?
- How to add different menu items on different menus?
- Nav menù doesn’t display selected pages