The easiest would be to serve 2 different menus and assign them different css classes, so you can style them differently.
if ( is_home() ) {
// use home menu
wp_nav_menu( array( 'menu' => 'home', 'menu_class' => 'menu_home' );
} else {
// use other menu
wp_nav_menu( array( 'menu' => 'nohome', 'menu_class' => 'menu_no_home' );
}
I think, a plugin would make it more complicated than needed.
Related Posts:
- How to call “page specific menu items” in template [closed]
- Include Max mega menu Plugin into theme
- Menus, but not by theme location
- Redirect to another page using contact form 7? [closed]
- How can I keep a WordPress dropdown menu open when navigating to a child page?
- Between functions.php (theme), widgets, and plugins, which is loaded first?
- Check if add_menu_page exists or not
- Is there any sort of theme dependency management?
- How to make plugin required in a wp theme without using php conditional statements when calling an individual function from that plugin?
- How do I cleanly override a plugin’s CSS with a child theme?
- Is it possible to stop selected plugins from loading on certain template pages?
- Can I make plugins required?
- Add custom menu item type
- Add Plugins to WordPress Theme
- Add section (add_settings_section) to a custom page (add_submenu_page)
- Hide wordpress plugins from list
- wp_enqueue_scripts not working in custom theme
- What is the correct way for a theme to support plugin UIs?
- Automatically install wordpress plugin at theme activation
- When coding a WordPress theme, where does the theme (i.e. the presentation) end and the plugin (i.e. the functionality) begin?
- What’s the easiest way to duplicate an entire navigation menu?
- Adding a text domain to every __(), _e() and __n() gettext call without a plan to create own translations
- Create WooCommerce Product Category Programmatically
- Can we completely remove the WordPress Sitemaps (WordPress 5.5)?
- WordPress tips for speed and performance [closed]
- How to access options of Redux framework in front end
- Custom wp_nav_menu output (displaying all child elements of top menu element in current branch)
- Update Multiple Post Meta for the Same Post In One call?
- Function to activate WordPress theme inside a plugin
- Integrating plugins in themes
- Seeking clarification on page request life-cycle
- Which functions in theme or plugin load first
- Get info (url) from already enqueued styles
- How to hide fields from my user profiles
- How do I make my wordpress page more friendly for mobile viewers?
- WordPress Enqueue Script Chaos (jQuery & Foundation.js)
- login to wordpress with Get variables instead of Post
- How to make my plugin theme-independent?
- Should I add sharing buttons using a plugin or directly in my theme files?
- How to load a new template page according to a particular URL?
- Check javascript file Proper way in functions.php
- Should I use RIPS tool to test my themes and plugins?
- wp_nav_menu(); Outside WordPress installation
- How to make a plugin auto-add item to nav menu
- Does the ‘nav_menu_css_class’ filter accept 2 or 3 arguments?
- Translate third party plugin and save translation files in custom theme
- Add custom buttons with custom actions in Edit Post screen in WordPress?
- Code in theme functions.php faster than with a plugin?
- How to Build a Movie Library in WordPress 3.x
- How do I future proof my older WordPress theme?
- resize only height using wp_get_image_editor
- How do I make a wordpress plugin with menu item etc
- Autoload via composer in plugin interference
- Creating WordPress Plugin solely for Admin panel with dash menu and submenus
- Workflow and best practice for documentation [closed]
- Is there a quick way to inject i18n domain into theme/plugin files?
- Popup Maker nav menu item not working
- register_theme_directory somehow “fails” when folder is outside of WP-Folder
- Display future posts?
- Creating a menu page in a Object Oriented developed plugin
- WordPress language switcher
- Having separate plugins and themes folder for multi-site setup
- Showing Co-Authors on post page
- How can I get full attachment url from wp_get_attachment_metadata?
- WP theme with Backbone
- Translating plugin inside the theme [closed]
- Multiple navigation menus to a location?
- unzip a folder on specific location and delete the zip file
- Editing Theme to apply Co-Authors Plus
- gallery option is not available in media upload box in costum theme option page
- How to limit WordPress pages during updates?
- Why are some of my thumbnails not being generated?
- Why is the Settings API is not saving my array of options
- Making menu link open in new tab?
- Built in audio player?
- How to retrieve custom meta term of category taxonomy from WP Rest API?
- How to integrate plugin in WordPress theme
- How to include plugin without activation?
- How use %like% in sql statement wordpress
- How do you remove plugin edit option?
- Override the filter from plugin in child theme
- WordPress logo upload option in theme panel
- Custom Taxonomy Tag Search
- Network: retrieve a list of latest posts
- wordpress theme backend admin only
- Check if we’re viewing an event
- Wondering what these multi-colored extra pages are?
- Set the active Navigation Menu from a plugin
- How does WP handle multiple matching rewrite rules?
- how to load the language file in plugin?
- WooCommerce get_price returning wrong price when used via ajax
- Open Post Thumbnail in New Child Theme File in WordPress
- How to use get_theme_mod in gutenberg editor wordpress?
- How to make a customize role and view a specific plugins base on that role?
- How to get current post user id
- Events Made Easy Plugin – Duplicate Title Tags
- Different UI in WordPress
- What is the correct way to update both WP/plugins/themes without breaking the site?
- Redux Framework has an embedded demo. Click here to activate the sample config file
- Not getting author rank when using return