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:
- How to include code only on specific pages?
- force enqueue script to be first in order of prominence
- Modifying a JS file with data from plugin settings
- How to call plugin path in JS?
- AJAX Call Via Vanilla JavaScript In WordPress Plugin Development
- How can I make content disappear when a user logs in?
- Why is the unrendered widget number `__i__` showing up in the JavaScript but not in the HTML?
- 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
- How to Reload the Dashboard After Clicking Update in Quick-Edit?
- Ajax call doesn’t work in frontend but it’s working in backend (when I’m logged in)
- White text on white background in TinyMCE when wp_editor is called in WP 3.9
- What’s the best plugin for allowing javascript in a post or page? [closed]
- Is it possible to filter the wp_footer() scripts, read the content, and insert them inline?
- How can I make the “Preview Post” button save and preview in the same window?
- Disable / Deregister all JS from all plugins
- How to create popup same as wordpress popup feature
- Has anyone used require.js for handling plugin scripts?
- Passing RichText attributes to function onChange
- Gutenberg List Extension Block
- javascript onload calling a function of a plugin
- JQuery not working in my plugin [closed]
- prettyPhoto media loading very slowly in Chrome
- How to load plugin after page is loaded – pagespeed issues
- Pulling data from custom plugin settings using PHP shortcode and Javascript
- Using custom JS plugins with WordPress?
- Override Javascript in a Plugin?
- How to disable specific plugin in mobile version?
- Updating the Drag-To-Share eXtended share URLs?
- add image crop function like in wp customizer
- Calculate price and display on woocommerce product single page under price (simple price, variable price) [closed]
- How to edit content before post update
- wp.media javascript issue with on select
- WordPress + JavaScipt + AJAX + MySQL: insert query for form
- add input in custom javascript from WordPress pages/posts
- Advanced AJAX Page Loader ignores other JS code
- accessing wp.media api from a tinymce plugin
- How to load wp_editor via AJAX
- Redux Framework: Page freezes on typing in Editor
- WordPress 3.8.3. custom theme – sliders won’t load js/css files
- Redirect to another page using contact form 7? [closed]
- 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?
- How to generate an all in one WordPress New content, plugin and theme update report on a website? [closed]
- How use wp media upload liberary in react components?
- How to use custom Javascript code inside a plugin?
- Adding a simple Javascript file with a plugin
- JQuery needs to be defined in , but Gravity Forms is defining it in the
- Executing Javascript in Plugin
- What’s the default setting for including a in a post
- Code for unique user visit count on every page WordPress
- Set Button in PluginDocumentSettingPanel Content (WordPress Gutenberg)
- Upload Javascript and json webpage to wordpress
- 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
- Trouble with AJAX using GET
- Get the link title attribute and send it google analytics as custom label via google tag manager using beehive pro for WordPress
- Calling PHP function with AJAX
- How can I add a custom Javascript snippet to display my feedback in footer?
- 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 add defer to WordPress Plugin javascript? [duplicate]
- 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?
- How to solve Blocked a frame with origin from accessing a cross origin frame error in wordpress?
- Enabling plugin on specific pages and subpages
- How to use information from the database in the front-end?
- how to send two forms with one click (script ninjaforms id)
- How to print shortcode with js in visual composer?
- 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?
- contact 7 plugin stops some pages from working properly
- Can’t insert files in other inputs
- Is it possible to run javascript on plugin deactivated?
- How do I output user_registered time in my correct timezone?
- Ajax in Plugins: returns the whole page
- How to tweak a plugin without preventing it from updating
- WordPress shortcode plugin not working
- FacetWP: Plugin breaks button/modal functionality inside searchable content area
- Defer parsing of JavaScript [duplicate]
- How do I put a word-press blog into my static site without installing wordpress on server?
- Count div with class (.length) only shows 0 [closed]
- how to embed a crop feature for cropping images uploaded by the user
- How to access values from your own settings page in javascript?
- Refresh server side rendered block in Gutenberg without changing attributes or its content
- How do I call an action hook into wp_ajax hook callback function
- I want to display data last 7 days with date wise in chartjs?
- Select posts from list and add them in a new list
- this code is fiven by chat-gtp but nothing match even I key in the value of a cell. help!
- Use custom Javascript for a custom Elementor Widget [closed]