If it’s all about CSS & you don’t mind adding/removing it manually, please consider using a CSS class for that particular menu item. If you don’t see the option, click screen options in top-right, then check the option for CSS classes. Then you can write all the CSS on this class instead of the ID.
For all other options, you’ll go in your theme & use a custom walker for your menu. If the id remains constant, you can add or ignore the particular item from being displayed depending on some condition.
It is also possible to add a checkbox(let’s say) to every menu item, then check that value in your custom walker & deactivate the menu item accordingly.
Related Posts:
- Using tabs for wordpress plugin
- Making menu link open in new tab?
- Delete mobile menu button [closed]
- Dynamic admin submenu
- How to use my menu PHP code as sidebar?
- Redirect to another page using contact form 7? [closed]
- Full list of registered scripts or styles, but from an admin options page
- Hide a Menu Item on Login
- I cannot include a file in my plugin settings page
- Button and Countdown overlapping mobile menu
- WordPress Dashboard add user password not working, etc
- Add custom WordPress admin page with pretty url via code
- Add stylesheets and js to template files when shortcode is used
- Menus, but not by theme location
- Custom CSS for plugin form
- How do I modify the position of a plugin?
- Plugin upload to install
- How to make a customize role and view a specific plugins base on that role?
- WordPress takes too much time (100 seconds) to load – Front end and back end
- WordPress on AWS with ELB
- Change the backend language of a single plugin
- plugin style conflicts, how to override? [closed]
- Is there an earlier hook than login_head or login_enqueue_scripts?
- How to disable CSS rule in Twentythirteen style.css?
- Theme’s default styles are overriding my plugin’s custom CSS
- Remove ALL css for a specific plugin page
- Edit default comments page in WP Admin
- All Users > User List > Update User Meta Field Inline
- Globally register styles but enqueue them selectively
- CSS from textarea in options page to frontend what to do
- custom changes removed after plugin update
- W3 Total cache “empty all caches” and no stylesheets render [closed]
- Rotating background images with admin options
- Creating a nav menu
- Admin Panel pagination link styles
- How to style the RSS wordpress?
- Is there an easy way to flag posts in the admin area?
- Can someone please tell me what is wrong with my plugin?
- How Do I Figure Out What File(s) to Edit from Looking at the Source Code [closed]
- Show an image in my header.php
- How to hide some section in WordPress under Post
- Default WordPress WP Editor removing style tags and html tag
- Easiest way to add dropdown to a page
- WPBakery JS composer unused css [closed]
- How to tie dark mode with prefers-color-scheme webkit? [closed]
- How to get the element ID from new menu list that added with add_filter()?
- Trouble with plugin styles in admin area of WordPress
- Add a CSS class based on categroy id to archive pages
- Changing “elapsed time” to “time remaining” on MP3-jPlayer audio player with CSS or PHP changes
- Child Pages Short Code plug-in and hover capabilities?
- Merging Two menus in the backend into one menu
- Removing included CSS file that doesn’t exist
- How to hide CSS by default and show on button press
- (Sticky Row) How do i make a row sticky in wpbakery page builder?
- How to create an input field, and base the output on spreadsheet data? [closed]
- Facebook Messager Plugin
- WordPress plugin output formatting
- Polylang : Interverting languages after development [closed]
- how to access all user dashboard on fronted page [closed]
- What would I need to write into a custom plugin in order to add a switch for a custom string of CSS to the edit page?
- Bootstrap and Custom CSS in custom plugin are being overwritten by theme
- Ajax Search Lite: Customize Autoscroll
- Is it possible make a back-end for WordPress with WordPress?
- Widgets Scripts don’t load – but load when I reload the page
- html generated by theme exist but doesnt appear in browser
- Ability to automatically redirect a URL
- Changing page URL and connect newsletter to MailChip
- Create tabs in admin options page from custom post type loop
- Center and hide overflow of WP toolbar custom links
- How to get DEFER or ASYNC attribute to appear when I add a stylesheet with wp_enqueue_style from a plugin? [duplicate]
- Remove ‘Check Compatibility’ from Plugins menu
- How to remove admin main menu name repetition
- Which filter affects the ‘entry-title’ post class
- Custom Permalink Plugin and Current Page/Ancestor in Menus
- wp-custom-menu filter removes the current_page_item class
- add_action does not call the function
- Adding CSS to custom post type admin page causes error
- Add menu page issues (permissions & position)
- Edit External CSS
- Network activating; if ( !current_user_can( ‘manage_options’ ) ) locks me out…
- Stop Plugin from Getting Styles from Other Plugin
- Cannot access my wp-admin after installing Gzip compression [closed]
- Add sub menu page in your plugin
- How do I use add_action on custom widget?
- Why Do I get “wp_remote-get: could not handle for fopen()”?
- How to apply next/previous classes to LIs for pagination links?
- Override plugin styles via my custom theme
- How to add CSS via custom plugin?
- Plugin settings won’t save changes
- Is there any way to make myself an admin?
- Plugin Theme CSS [closed]
- Overwrite a plugin’s CSS?
- How to make multiple admin pages for one plugin?
- Combining several CSS files into one for optimization
- $wpdb update query in plugin only updating one column
- How to add a dvi tag to a shortcode then change a generated text using jQuery
- how to prevent all css and javascripts files from loading
- Front-end CSS Library for plugin [closed]
- Locked out of admin panel after installing HC Custom WP-Admin URL [closed]
- How to get menu location in wp_update_nav_menu hook