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 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?
- Adding a text domain to every __(), _e() and __n() gettext call without a plan to create own translations
- Custom wp_nav_menu output (displaying all child elements of top menu element in current branch)
- Function to activate WordPress theme inside a plugin
- Seeking clarification on page request life-cycle
- Which functions in theme or plugin load first
- Get info (url) from already enqueued styles
- wp_nav_menu(); Outside WordPress installation
- resize only height using wp_get_image_editor
- How do I make a wordpress plugin with menu item etc
- Popup Maker nav menu item not working
- Creating a menu page in a Object Oriented developed plugin
- WP theme with Backbone
- Translating plugin inside the theme [closed]
- Editing Theme to apply Co-Authors Plus
- How to integrate plugin in WordPress theme
- How to include plugin without activation?
- How do you remove plugin edit option?
- WordPress logo upload option in theme panel
- wordpress theme backend admin only
- Check if we’re viewing an event
- Wondering what these multi-colored extra pages are?
- how to load the language file in plugin?
- How to make a customize role and view a specific plugins base on that role?
- How to get current post user id
- Different UI in WordPress
- Redux Framework has an embedded demo. Click here to activate the sample config file
- The problem with WordPress Importer
- Why does my functions.php cause white-screen and media-library issues?
- Display post lists in 2nd paragraph
- How to get the element ID from new menu list that added with add_filter()?
- Changing page URL and connect newsletter to MailChip
- How can I position ShareThis buttons manually when using the plug-in? [closed]
- Plugin can not display in my custom theme
- How to use get_template part in the plugin?
- WordPress premium theme development [duplicate]
- How can I show a different theme for admin users? WP 3.8+
- How to show the number of website visitors in my theme
- How to write “alt” tag in image for wordpress code?
- How to get menu location in wp_update_nav_menu hook
- PHP script from functions php is loaded via admin-ajax to div…and the result is 0, not the desired content
- Progmatically adding menu links to the default (Top) or Footer menu
- What form should the $query media query array have for an Elementor page builder function? [closed]
- is_rtl returns false while it should return true
- Include Minit plugin in theme [closed]
- $pages = get_pages(‘child_of=’.$post->ID); Why arguments are concatenated?
- Set up functions to be overridden without using function_exists() by short-circuiting them?
- Inserting Plugins Into Blank Space of Externally Designed WordPress Theme
- How can I add a fixed vertical menu to my site? [closed]
- Extending a theme: build new features as plugin or core modules?
- Remember the Meta Value With Radio Buttons
- Theme Functions run a function upon activation or preview
- Polldaddy doesn’t show up on own theme
- How to add an admin alert for missing plugins
- navigation among single posts
- Is there a way to keep youtube videos from displaying on home page, and display only on single posts?
- Janrain/Simple Modal under Redirected Domain
- Warning: Attempt to read property “ID” on null in C:\xampp\htdocs\Nnamdi1\wp-content\plugins\elementor\core\base\document.php on line 250 [closed]
- Seperate plugin and theme files
- Button and Countdown overlapping mobile menu
- how to display recent post by category on home page
- Unpublished Pages Failing To Appear On Custom Path
- WordPress Dashboard add user password not working, etc
- Add custom WordPress admin page with pretty url via code
- I need to show side menu in wordpress
- How much PHP and MySQL or MariaDB knowledge should I know to start writing WordPress themes and plug-ins and whatever else a beginner can edit?
- Is it possible to customize a wordpress post from outside dashboard(Something like site.com/post-type/post/?e=post_id)?
- Disqus comment system not show
- Remove action added in plugin class from theme
- Page Contents showing in Footer Area
- Can you develop themes and plugins while using the hosting services BlueHost? [closed]
- How to add wordpress plugins in along with my standalone theme
- How to assign plugin to top level menu?
- How to build a navigation menu for long-form texts like this one
- Automatically add child pages to menu
- How to add plugin activity in the menus?
- How change menu for each user in plugin?
- how to change/remove/hide menu under installed plugins
- Redirect url in plugin to somewhere else?
- How to activate/deactivate menu tab and keep the same id?
- Site is setup statically – how to make it content managable?
- How can I make a website with dynamic features with wordpress?
- How to validate password length in wordpress
- Why plugin’s icon for the menu not found?
- Javascript as Jquery Function Call?
- Detect if you’re in the “Frontend Editor” mode in Visual Composer WordPress [closed]
- Can anyone tell some online tuts for plugin development for beginner? [closed]
- How to escape html code?
- My wp_update_nav_menu action is firing twice
- Ajax button “Load more” is not loading correct language version posts for logged out users
- How to code a wordpress page properly? Dashboard or unique Theme files or alternative?
- how to make wordpress remember my choice
- Meta box not displaying on the plugin page
- How does one add numbers to an admin menu?
- Getting error when accessing Customizer Page