I’m guessing this is a css loading issue. The website loads all the resources before loading the style sheet that hides your sub menus (in your case dropdowns.less). Enqueuing .less in wordpress is done a bit different than you would enque a normal css stylesheet so you should check this out.
If this is indeed the problem, a simple fix to this that should work, is copying the “display:none” rule in the main style.css:
.dropdown-menu {
display: none;
}
Let me know if this works
Related Posts:
- How to remove hardcoded characters from playlists?
- How to display something in a div when the user clicks on a text in another div – no page refresh [closed]
- Create another “Display Site Title and Tagline” checkbox, “Header Text Color” setting and control
- How to add a do_action on refreshing of WP customizer?
- A Customizer checkbox control that sets the setting to “” or to “blank” and show() or hide() a color control
- Why have on every line
- Most efficient way to add javascript file to specific post and/or pages?
- Function to return true if current page has child pages
- Pass media upload value to input field
- Include a external PHP file into a WordPress Custom Template
- List of all theme customizer control types?
- Add a class to links in the visual editor (how to get old dialog back)
- Get author full name
- Combine CSS and JS files from plugins
- JqueryUi Dialog giving Uncaught TypeError: this._addClass is not a function error
- WordPress Ajax always returns a 404 error
- How to preserve PHP modifications while upgrading WordPress?
- Is it possible to get a theme customizer setting from wp.customize using jquery?
- Conditionally loading JavaScript based on the Advanced Custom Fields in the post
- Removing jQuery migrate and working with dependencies
- is there a simple way to list every templates / php files used to generate a specific page?
- What is the best practice for customizing a plugin’s JavaScript/jQuery?
- Set the transport of the Customizer ‘header_image’ core setting to ‘postMessage’
- Is there a reason why my wordpress PHP page isn’t loading into my PHP template
- How to use WordPress (PHP) functions in AngularJS partials files?
- Limit the Excerpt field in WP-Admin in words
- Nice scroll to wordpress
- Infinite-Scroll Plugin and Jetpack Infinite Scroll Plugin – Adding to “Thoughts” Theme
- Understanding WordPress child theme custom JS loading
- How can I loop into two different DIVS without repeating the DIVs
- Use different javascript files for each page on website
- Using an Image Slider twice on the same page
- Widgets not showing in my custom theme
- Click loads template via ajax
- Display notification only once
- Access/update database with jQuery
- Why WordPress architecture is not pure object oriented and it don’t use MVC pattern? [closed]
- How to correctly add JQuery in a WP theme?
- Using wp_localize_script to store the template url into a variable to use in JS
- How to speed up admin-ajax.php in wordpress
- JQuery not working on WordPress Admin page [closed]
- Why is this Ajax not working?
- Colorbox ajax loading of outside HTML content works perfect on localhost but not on server
- Sending jsPDF documents to the server
- Ajax return code 400
- Displaying theme options in css
- Show post in slider
- Using shipped version of jquery
- How to show a dynamic_sidebar if main content content’s height is > a set amount?
- How to test nonce with AJAX – Plugin development
- js file in root loading without
- class click counter save number
- Trigger popup in a php if/else statement
- Customizer: Output default value in Customizer CSS
- Slider loading issue
- AJAX request status 200 but no actual “response”
- How to select the contents in the text view textrea in wp_editor?
- Converting HTML Template to WordPress Theme
- Customize Theme comment template to Insert VoteUp and VoteDown buttons
- I have a problem in the order of enqueues while enqueuing stylesheets and scripts for a specific page in my function.php
- Need Help Fixing My Iframes [closed]
- Save Search System
- populate form fields in a loop with ajax
- dynamic dependent select dropdown
- Customizer: active_callback and sanitize_callback incompatibility?
- Ajax load more button for comments wordpress
- Setting value of session with Ajax not working
- security concerns if using html data-* attribute for l10n?
- Hot to check if new posts have been published since page load and notify online users?
- Customizer control save then return to default
- WordPress cascading dropdown selection search based on Parent Page & Child Page
- Tracking Visitor LatLng with WordPress using JS, PHP. How to put data which was extract using JS into DB
- How to extend SelectControl with data from my theme
- Add other class content with reference class value
- Admin-ajax.php 404 error
- How to pass values from one function to the other using an array variable
- How to change PHP variables with AJAX request in WordPress
- How to use wp_ajax_set_post_thumbnail?
- Update $wpdb query with AJAX
- register dependency css and js inside a plugin class
- AJAX to add to cart multiple products woocommerce
- Using wp_editor() when not logged stopped working
- Show the subcategory name based on current product
- Cannot successfully execute AJAX script to call function.php specific function. Using XAMPP localhost to test
- Collapsible menu on post sidebar only expands and does not collapse
- Move Jquery.js to Footer
- Remove specific javascript when viewing page in Customizer?
- How to echo a PHP code into WooCommerce variation product?
- How can i get the same ajax result using WP REST API instead of admin-ajax?
- How to call a function from functions.php with ajax?
- Custom theme admin-ajax.php 400 (Bad Request)
- WordPress load javascript file if something… (after the page is loaded)
- include javascript Multiple files in wordpress through script.js
- Automatically refresh page if widget is added to page?
- number of posts with “Load More”
- custom field – changing an element or background of id div – different versions not working
- How to send Ajax Call from frontend without using wp_localize_script in Theme
- Bootstrap Carousel Indicators Won’t Cycle On Custom WordPress Theme
- Is there a reason why my wordpress PHP page isn’t loading into my PHP template
- ACF + WP + Slick Slider Repeater Slide Group PHP not Displaying [closed]