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
- How can I get a single php file that is the equivalent of an existing WordPress page?
- Automatically adding new post categories to menu
- Add data attribute to each li in menu
- Get and insert order email address to the PHP template inside HTML text
- Custom search results page not working with empty search
- I have a problem in the order of enqueues while enqueuing stylesheets and scripts for a specific page in my function.php
- How to show single category archive
- Remove metabox from WordPress menu editor page?
- code is skipping a div
- Issues getting PHP to display in category pages
- Custom Walker_Nav_Menu issue with variables on PHP 7.3
- How to add an arrow to menu items has submenus
- wp_nav_menu returns menu list in ascending order. How can I arrange the menu same as dashboard menu
- Change title only in dynamic page
- Unique icons next to each WordPress menu item
- Child page menu in sidebar
- Title Case WordPress Menu Items
- 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
- Pagination in plugin’s backend
- Trying to store submenu items to render out after main menu
- Detecting classes, adding widgets, and adding divs in with a Nav Walker
- How to change menu order item
- How can I edit the content in index.php? [duplicate]
- Custom Menus: dynamic highlighting problem with custom home link
- get_the_title() gets printed out twice
- Woocommerce Show Single Product on Homepage
- Is the “_s” on this `sprintf(__(‘Page %s’, ‘_s’), max($paged, $page))` just refer to a text domain?
- how to show only specific category for a template
- Show a different code on front page to other pages
- Does wordpress templates always in files or in database?
- Can’t print Yoast meta description into page template (syntax error, unexpected ‘.’) [closed]
- Using same variable names in files added with get_template_part()
- Add item to top of menu using a filter in functions.php
- PHP include is only working in certain places in my custom WP theme
- Use WordPress function in php file
- Adding wrapper elements in the_date() like in the_title()?
- Adding PHP in the menu
- Two menus show up
- How to get all author posts outside of author templates
- Add filter multiple times using only one master function
- Create a Blog Template Page
- Showing latest post without 301 redirect
- WordPress template page name displayed on screen
- Is there a way to hook or call a custom woocomerce template that is not part of the default templates of woocommerce?
- Change order of custom submenu link in WP Admin?
- Register a menu – Error Header
- How to style one item from main navigation?
- Show About and Contact Us page when they’re clicked in the top menu.
- single.php with different look by category
- How to call multiple functions from multiple files into a WordPress page template [closed]
- New walker for walker_nav_menu to change inside container data
- Add data-id attribute to child page links
- Parsing Menu Items and Blog Posts
- Add login hyperlink to secondary navigation menu
- 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
- Function Reference Documenting Template Tags for use in Custom Theme Templates?
- Removing WordPress Footer -without access to PHP code?
- How to set a template with wp_insert_post
- Automatically add images to a menu
- Why is a wp function used in current PHP namespace’s callback not resolved to global scope?
- Why does the Woocommerce grouped template prints the unpublished products?
- Adding conditional text to a PHP Shortcode Template
- how to save checkbox data for custom setting?
- Create page template via functions.php?
- What’s a good way to allow overwriting files within a child theme if I want the same folder structure?
- Add value to new attribute inside WordPress menu items
- how to display this functions?
- is_page_template showing partial results
- Adding regular php file to site
- wp_nav_menu not working correctly in my underscores theme
- Advice on creating a WP Archive Template with Custom Taxonomy (get_term_meta)
- add_filter function concatenate string and locate_template function
- How to render a block from php template
- Admin submenu issue with PHP not detecting two strings as equal
- admin-ajax GET response bad request
- Template Loop – add switch case php
- Override Admin menu icon
- Post repeated when opening in overlay, how do I solve this? [closed]
- Some menu items wont budge
- Menu Items fail to save correctly, cause reset of related page metadata
- Dropdown menu for categories
- Menu Custom Data Attributes
- How to display different submenus?
- How to suppress template-parts in undescores?
- Need help with pagination
- Get the name of menu item with wp_nav_menu
- How can I get “Previous” and “Next” to show in the navigation besides the links?
- Notice: Trying to get property of non-object
- Creating custom page template from existing PHP site
- How to use wp_nav_menu to create custom dropdown menu?
- How to modify mobile nav menu text in theme
- How do I query a single data value from the wp_metadata table?