Assuming you are editing a child theme (or somehow protecting your changes from future update/over-writing) a very simple way to accomplish this is with a CSS rule that targets your mobile menu, then applies display: none
to it.
Using a combination of media queries and carefully written CSS selectors, you can target exactly the HTML elements you wish to hide, and in what context.
My guess is you will need a combination of body class (for the correct content type), media query and appropriate CSS.
Related Posts:
- Apply the_title() filter in post & page title, but not in menu title
- How to add post count to wp_nav_menu?
- Change the default number of posts to show on mobile version
- Adding Post Counts to Menu (Nav) Programmatically?
- Adding a Nav menu to post admin
- Is it possible to show a different WP menu when using password protected pages?
- What Defines What Category A Post Picks (if in multiple)
- Edit menu item title from edit page/post
- WordPress menu that shows all posts in a certain category like w3schools
- Mark menu item as current-menu-item for category
- Sidebar links for different pages
- Create dropdown list post
- Disable most recent & view all (TABS) on nav-menu.php
- Blog Posts in Custom Menu
- Get latest posts from WordPress site without header, menu and sidebar
- Is it possible to change post id for an already added menu item in WordPress?
- How to create a submenu that will navigate through different posts in the same page
- More then one menu items are assigned with “current-menu-item” class
- One menu for frontpage (one pager), and a different menu for posts
- How to list recent posts in a wp nav menu?
- Using wp_list_pages() after calling query_posts()
- Show posts count for Categories and Tags in wp_nav_menu
- How to add category post count in main navigation menu [closed]
- disable Tab post on nav-menus page (Admin)
- How to Use index.php file for “Blog” Page And this is Not a Home Page
- How can I list posts by author?
- WordPress Menu options in the Admin: Posts for the dropdowns
- Is there a way to add the list of recent posts into the admin sub menu on hover?
- Deleted a user with administrator rights. Now all the data/content/images are lost. how to recover them back
- WordPress post filter menu
- Un-highlight Blog Menu Item when Category Menu Item is Selected
- Get current post’s nav menu name (term name)
- Programmatically add posts from specific category to menu
- wp_list_categories() Exclude All Categories Except One
- How to output all taxonomy links from a custom post type in a menu?
- Making a new post visible on a specific page
- Optimal WP Web App Backend for mobile app development
- WordPress – When visiting a `single post/ single.php` my category menu item link becomes active
- Featured Images most often doesnt appear
- Menu does not foward to the linked posts
- Menu Items disappearing/being empty on save or post edit
- Get post slug and match with menu item slug to change css
- I want to add the 10 most recent posts under a parent category on the main menu
- Go back to the exact post page number
- How to add class to specific navbar item when post parent category is in specific category
- How do I scope out why I have two “posts” menus in an admin?
- Parent menu item does not display posts when I add the sub-items
- How to make certain posts not appear on the main page, but instead only a newly created category(in the menu section)
- Automatic Table of contents with categories and posts
- Using WP page password protection as defacto login
- I lost the link to my posts in my menu bar
- How to add content to the menu
- display content in multiple columns
- Keep highlight on menu item with post pages
- Is there a global page/post/product/anything ID?
- Page and Posts loading as index page? Not loading the content
- Call posts of particular category in a page
- Add custom class to existing menu items from custom meta
- “Current” class on a singular page menu item with custom post types?
- Make a paginated article (for easier reading on mobile)
- Load Pages Menu in single.php
- Display Post by menu order
- How do i put a dropdown list of ALL my post in the sidebar menu?
- How to make posts appear under pages
- Adding a post to a page
- Dynamic Menu Item
- How to remove category and other tags from posts page
- Stop WordPress automatically adding tags to post content
- Let private posts stay in status “private” after edit through “editors”
- how to get a different html for odd/even posts?
- Display most recent post in category instead of archive?
- Display the latest posts, published in the last hour, with WP_Query
- same template for multiple custom post type single
- Allowing the SoundCloud player to appear in a post excerpt
- Converting multiple loops into one single loop with pagination
- Run a function when post is deleted?
- Server-side sorting of posts
- Exclude posts w/ specific post_meta on Rest API endpoint
- How to change wordpress dates to native language (even if the languge not available i wordpress)
- How do I exclude the current post from listing in recent posts
- WP_Query orderby not working with meta_value_num and menu_order
- Bulk delete WordPress posts with phpMyAdmin
- How To capitalize The First Letter Of Every Word In The Post Title
- Show post content and title in diferent divs using WP_Query using a loop
- Check if a custom post type has already been created
- Reinstall WordPress while keeping attachments
- Custom WP_Query not working correctly
- Echo the number of posts being displayed
- Get post related to particular meta box? [closed]
- created post displaying differently on front end
- MYSQL: Create SQL query to search for string and replace
- how to filter posts by category without page load (ajax) in wordpress?
- How to display max. 2 sticky posts when posts_per_page is 3?
- Count posts for pagination
- Custom Post Type doesn’t use single.php or single-{custom_post_type}.php
- Changing permalink of custom category
- How to limit the number of posts a user can publish based on user type
- Add News Feed to bespoke website, only to one page on whole site
- website images getting corrupt automatically
- Posts Page in WordPress loading bare HTML of my homepage