In the past I’ve done this by adding 2 menu items named the same thing and hiding one when over a dimension (700px) and having one visible. Then when you cross the threshold you would reverse.
.menu-item-1 {
display:block:
}
.menu-item-2 {
display:none;
}
@media all and (max-width: 699px) {
.menu-item-1 {
display:none:
}
.menu-item-2 {
display:block;
}
}
This is a bit simplified as i don’t know your menu item actual numbers or if they are inline or block or inline block, but this will get you close based on the idea.
You can add addition css to each menu item in the menu section (You might have to check the “screen options” in top right if you don’t see a css field.)
Related Posts:
- force enqueue script to be first in order of prominence
- Modifying a JS file with data from plugin settings
- A better way to override plugin’s JS files?
- How to call plugin path in JS?
- How do I sanitize a javascript text?
- How can a Firebase user registration and login be integrated into a WordPress site?
- How do I make my wordpress page more friendly for mobile viewers?
- AJAX Call Via Vanilla JavaScript In WordPress Plugin Development
- Custom plugin giving: wp-admin/admin-ajax.php 400 (Bad Request)
- How can I make content disappear when a user logs in?
- How to save Clicks of a download link button while it doesn’t matter if we refresh the page or again login/logout
- ‘Lazy loading’ list of posts with pagination
- Check javascript file Proper way in functions.php
- How to include admin-ajax when loading external javascript
- how would I include a js file with tags into wordpress?
- Dequeue / Deregister script and replace it with a new plugin
- Google Maps and Yandex Maps doesn’t work correctly
- Prevent CSS/JS loading when plugin is not used
- Creating an Exit Confirmation Popup
- How to create popup same as wordpress popup feature
- Gutenberg List Extension Block
- Localiztion in javascript
- prettyPhoto media loading very slowly in Chrome
- Pulling data from custom plugin settings using PHP shortcode and Javascript
- Using custom JS plugins with WordPress?
- Override Javascript in a Plugin?
- Change upload folder for a CPT
- Override Plugin Script Fucnction in WordPress
- add input in custom javascript from WordPress pages/posts
- Redux Framework: Page freezes on typing in Editor
- How to get DEFER or ASYNC attribute to appear when I add a stylesheet with wp_enqueue_style from a plugin? [duplicate]
- Redirect to another page using contact form 7? [closed]
- Is there a loading priority for login_enqueue_scripts?
- Delay JavaScript files from loading
- “Conflict” with jQuery (or its plugins)?
- JavaScript in a PHP plugin
- How do I add some javascript validation to the admin interface form’s onsubmit?
- How to execute a plugin on a single page only?
- MediaElement.js works on one site but not the other?
- Pass user role to javascript code inside body
- How use wp media upload liberary in react components?
- Access post title from custom meta box on title change
- How to use custom Javascript code inside a plugin?
- Adding a simple Javascript file with a plugin
- Executing Javascript in Plugin
- Social share buttons text shows up on post excerpts
- Dropdown menu on click change
- How do I override all stylesheets and scripts without a plugin
- What’s the default setting for including a in a post
- Plugin Admin panel checkbox unchecked after submit
- Code for unique user visit count on every page WordPress
- Send Array from JS to php file then insert it in wp database through a plugin
- Set Button in PluginDocumentSettingPanel Content (WordPress Gutenberg)
- How to override Plugin javascript function : $(‘body’).on(‘change’,’.class’)
- Connect / Login WordPress Hosted Website or Blog with NodeJs
- login form should redirect to register page for in 1st login next time it should redirected to home page
- Fixed: Console.log twice in the edit function
- Javascript embedded disappears for editors
- How to fetch WordPress database values in JavaScript widget
- Possible way of having multiple Gutenberg instances for a page?
- Trouble with AJAX using GET
- Woocommerce add products to cart
- Show popup on click
- Javascript not getting injected into page
- Why does my custom plugin only function correctly once per page?
- How can I create a secure file download in WordPress?
- front end editor creation for Restropress plug in – displaying information from a WP admin area, on a different URL
- WordPress site hamburger menu toggle not working
- How to get Angular app working in WordPress plugin?
- Custom Field used to allow a Free Story; no longer works
- Create a form and have custom menu display based on user answers?
- Woocommerce – Change variations output
- WordPress ajax error 400 bad request for sending data to remote site [duplicate]
- Enabling plugin on specific pages and subpages
- Customizer preview URL not updating when settings reset to default
- how to send two forms with one click (script ninjaforms id)
- wp_enqueue_scrpts seems not to get called
- How to print shortcode with js in visual composer?
- Speed issues because of CSS & JavaScript
- Having trouble going from Jfiddle to implementing in WordPress :(
- How to limit each front-end user to view just his own uploaded files on Amazon S3?
- How to create a dashboard for logged-in users with custom functionality? [closed]
- Creating a user ‘add custom field’ section
- Javascript not working
- Creating custom URL for async content
- Need to hide an element depending on date and post category
- How do I convince this button to do something when it is clicked?
- Plugin – including external javascript calling google maps
- contact 7 plugin stops some pages from working properly
- Element works, but not on wordpress site [duplicate]
- how woocommerce swatch color name when hovered or selected
- How to create post comparison in wordpress
- WordPress shortcode plugin not working
- FacetWP: Plugin breaks button/modal functionality inside searchable content area
- TypeErrors with Yoast, jQuery in conflict?
- Count div with class (.length) only shows 0 [closed]
- Beginner question: Accessing js script in plugin
- Vanilla javascript in custom gutenberg block not working
- Sudden ERR_HTTP2_PROTOCOL_ERROR on every JS and CSS files loads
- Elementor Form : client side javascript validation