Solved it by setting container
to false
and then wrapping it manually.
<nav class="main_navigation">
<div class="topper">
<a href="https://wordpress.stackexchange.com/questions/203496/<?=get_home_url()?>" class="intranet">H</a>
</div>
<?php wp_nav_menu(array('container'=>false) ?>
</nav>
Related Posts:
- Replace a menu with widget or a custom template file programmatically
- Warning at top of website & top menu gone
- Issues with title-tag and document_title_parts
- Get menu object from theme_location
- How to influence the information displayed on widget inside wp-admin
- Remove Container Element From wp_nav_menu() Markup
- Is there a hook or function I can use to display all theme files being used on a current page?
- Add action hook conditionally – only when home.php in use
- why doesnt is_home() work in functions.php
- Implementing DNS Prefetching with WordPress
- How can I tell if I’m on a login page? [duplicate]
- In WooCommerce I need to modify the thankyou.php page [closed]
- Breadcrumbs showing Parent and Child Pages
- Why get_header() or get_footer() does not run twice if called in the same php file?
- Remove Page Title from Static Frontpage
- How to activate “Description” metabox for menu item programmatically?
- Dynamically add sub-categories to any category in the menu
- Set default options for inserting media
- Change parent theme file function in child themes functions.php
- Adding extra SVGs to TwentyNineteen child theme using class TwentyNineteen_SVG_Icons
- How to hook into the quick edit action?
- gform_after_submission content appears immediately after , not in post body [closed]
- Two different menus for two different locations?
- Unregister Nav Menu with fallback?
- How to programmatically set a menu to be the Primary Menu?
- WooCommerce add_action hook results in 500 error
- Increment price for Woocommerce Minicart [closed]
- how to change link of some wordpress pages
- Make menu structure match page heirarchy on page parent change
- Gravity Forms field entries into wp_query loop [closed]
- Proper way of using functions in action hook?
- How to preserve edits to Name or Slug of term when using wp_update_term on save?
- Is there a way to add a class to non current menu item?
- Get current page_id before loop, in functions.php
- Menu fallback “menu_class” rendering a “div” instead of a “ul”
- How to properly add function called by action-hooked function to functions.php?
- How To Remove Duplicate Menu Locations
- Where do I add html code to the menu div?
- How do I create page navigation linking to each H2 within the page? [closed]
- Inserting a functions output after the content
- Add function to every post?
- Don’t delete a page if it holds users
- How to add nav menu items to a specific position within a menu
- Passing values from a widget to a function within a plugin
- Custom Nav Walker sub-menu
- Footer disappears when using the_content ( )
- Categories as main menu items and subcategories as nested lists
- Get User Login Data (date, time… )
- jQuery does not work
- Why does re-using this function not work? [closed]
- Override the WordPress core function wp_referer_field
- How to return hook data when multiple parameters are present?
- What is the text that appears beside the page titles in the list of pages in the WP admin?
- How to edit the Tags within the image file URLs?
- Control the srcset much more (not all sizes in it each time)
- How to add_filter html template to middle of content
- Auto log in hook is requiring a page refresh
- New custom menu created. how to apply it?
- Possible to hook into Media Library preview File column and use a custom image?
- retrieves menu and converts it to a readable array
- Add Login/Logout Menu Item to Primary Nav “My Account” Submenu [Woocommerce] [closed]
- Default Nav Highlight
- WordPress wraps span tags into p tags
- why is this function firing on all child menu items as well?
- Is it possible to use add_filter in an included file in the child theme’s functions.php?
- Insert Content Before div#main from the functions.php File
- Multiple navigation menu in same location
- Replace admin header logo with an image
- current_page_item is missing inside wp_nav_menu
- Why I can’t load my JavaScripts using an hook inside my functions.php file?
- Unable to add extra elements to the main navi (wp_nav_menu_items)
- is_home() not working in functions.php file
- Changing the text of Upload/Insert on Posts and Pages Screen
- Conditional custom menu?
- Filter for replacing the WP_query object for a given category
- Bizarre Child Menu Issue on WP Site
- Header menu aligned right on all pages except for single-post page [closed]
- Does hook have an effect on increasing the page load?
- What is the earliest Hook a Script can use?
- Populate acf-field, depending on block name
- How Do I Unhook This Parent Theme Function?
- How to automatically add counted number to navigation menu items?
- Calling hooks in functions
- Menu and category highlighting for a single post
- WordPress Toggle Menu has stopped working
- How to add custom column into custom post, when field is select
- Fatal error when using array_diff() function inside of wp_update_nav_menu hook?
- True email confirmation for registration (keeping unvalidated users from user table)
- How to add widget in main menu
- Language Switch Function
- Modify sub_menu function to show pages below a specifically set page
- wp_nav_walker that interacts with widgets to setup mega menu
- Init hook for header send
- How to add a class name to the ancestor of a post?
- How can I append and prepend something to all post hyperlinks without using ::before or ::after? PHP hook solution?
- How do I add functionality to images?
- Why don’t ‘wp_nav_menu’ CSS classes work until a menu is created?
- Call wordpress function through functions.php when pressing menu
- How to add more than one menu for logged in members?
- Create section wit form