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
- Best way to overide plugin CSS?
- How to Add a Third Level Sub Menu to the WordPress Admin Menu
- How do I cleanly override a plugin’s CSS with a child theme?
- Why does wp_enqueue_style() in plugin not load stylesheet?
- How can I reduce the amount of files loaded/included per plugin?
- Adding Visibility Options
- wp_nav_menu(); Outside WordPress installation
- How do I make a wordpress plugin with menu item etc
- Layout shop page: resize images and columns
- How extend shortcode default values for a plugin?
- Why would WP-CLI and WP Admin show different list of plugins with updates?
- How could I execute my plugin just in frontend (not in backend)
- Is it possible to use Snap Scrolling? [closed]
- Hide Theme options and Customize Admin menu
- How do I write into a file (css)
- How to provide a plugin which requires CMB2 (plugin dependencies)?
- Wondering what these multi-colored extra pages are?
- Custom CSS for plugin form
- How to make a customize role and view a specific plugins base on that role?
- 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
- How Do I Figure Out What File(s) to Edit from Looking at the Source Code [closed]
- How to get the element ID from new menu list that added with add_filter()?
- Child Pages Short Code plug-in and hover capabilities?
- How to hide CSS by default and show on button press
- WordPress plugin output formatting
- Ajax Search Lite: Customize Autoscroll
- Is it possible make a back-end for WordPress with WordPress?
- Changing page URL and connect newsletter to MailChip
- 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
- Stop Plugin from Getting Styles from Other Plugin
- Cannot access my wp-admin after installing Gzip compression [closed]
- How to apply next/previous classes to LIs for pagination links?
- How to add CSS via custom plugin?
- Plugin settings won’t save changes
- how to prevent all css and javascripts files from loading
- Front-end CSS Library for plugin [closed]
- How to get menu location in wp_update_nav_menu hook
- Infinite scroll messing up nth:of-type
- PHP script from functions php is loaded via admin-ajax to div…and the result is 0, not the desired content
- Wooslider custom css
- Odd /wp-admin/admin-ajax.php entries showing in Wassup
- Progmatically adding menu links to the default (Top) or Footer menu
- WordPress Site is Broken, Cannot see wp-admin page [closed]
- How to remove a CPT Menu from the Root Admin only
- How can I add a fixed vertical menu to my site? [closed]
- Block wordpress style for my plugin admin page
- Not able to override plugin’s default css rules
- The Events Calendar Plugin – List View Background Colour Issue [closed]
- Cannot access WP admin because plugin returns 204
- Install old version of plugin from admin panel?
- insert an html tag using php plugin
- Best practice when modifying plugins CSS [duplicate]
- CSS/JS files in WordPress
- How do I work with the SlideDeck plug-in?
- Why is adoptStyles-css stylesheet link added to every page?
- Custom Plugin scripts from admin working in frontend
- Themes conflicts and overrides my WordPress Support widget Plugin styles
- Menu not closing after clicking – WordPress – Elementor
- Warning: call_user_func_array() expects parameter 1 to be a valid callback, function
- How to properly enqueue jQuery knob on WordPress without conflict?
- Apply only the css in my style.css file
- I need to show side menu in wordpress
- wp plugin adds “pagespeed.css” after each css file
- Admin menu hilighting wrong item for CPT
- Not able to upload Plugins/ Theme from Admin backend
- Page Contents showing in Footer Area
- Caching of combined CSS and JS fails because of losing MIME types through combining by PHP
- How to remove a css class for any wordpress page
- Creating wordpress admin page panel [Theme Option]
- Speed issues because of CSS & JavaScript
- How to build a navigation menu for long-form texts like this one
- Ajax return 0 in plugin – ajax only used in wp-admin
- Like/Dislike Bar not working when updating
- Possible jquery / library conflict in plugin usage
- Automatically add child pages to menu
- How to add plugin activity in the menus?
- how to change/remove/hide menu under installed plugins
- How to display a sitmap horizontally? [closed]
- How can I add different menus (different style menu) on each page?
- Screen Options drop-down does not show
- Content expands beyond its column container [closed]
- plugin translations not reflected in admin dashboard
- Option value not getting updated until page refresh in WordPress
- How to create a “Most Popular” & “Latest” TAB in WordPress
- warning wp session