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?
- Pass media upload value to input field
- JqueryUi Dialog giving Uncaught TypeError: this._addClass is not a function error
- WordPress Ajax always returns a 404 error
- Conditionally loading JavaScript based on the Advanced Custom Fields in the post
- 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
- Limit the Excerpt field in WP-Admin in words
- 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
- 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]
- Using wp_localize_script to store the template url into a variable to use in JS
- 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
- Using shipped version of jquery
- How to show a dynamic_sidebar if main content content’s height is > a set amount?
- js file in root loading without
- class click counter save number
- Customizer: Output default value in Customizer CSS
- AJAX request status 200 but no actual “response”
- Converting HTML Template to WordPress Theme
- Customize Theme comment template to Insert VoteUp and VoteDown buttons
- 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
- Post repeating with infinite scroll
- How to disable controls in theme customizer?
- How do I Import / Upload Files with jQuery AJAX?
- WordPress Ajax Call inserting data but success response false
- Jquery window.send_to_editor function
- Theme not calling Jquery properly
- How to add drag and drop functionalities to a div inside option panel
- wp_nav_menu not working correctly in my underscores theme
- jQuery accordion menu
- Is there a hack for using is_page() within the function.php file?
- Removed jQuery script from header.php , any problems?
- pass html code to worpdress
- Covert WordPress Blogname into JQuery
- Ajax URLs without #!, how to prevent falling into single.php on load or reload?
- Change Query Arguments (filter) with jQuery/Ajax or PHP?
- 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
- Admin-ajax.php 404 error
- How to pass values from one function to the other using an array variable
- 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 can i get the same ajax result using WP REST API instead of admin-ajax?
- WordPress load javascript file if something… (after the page is loaded)
- custom field – changing an element or background of id div – different versions not working
- 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]
- How to get php file based on URL in WordPress
- How can I customize a WordPress theme before it’s downloaded?
- Default Image not showing up in Customizer for WP_Customize_Cropped_Image_Control
- How to create a radio button to alt between settings in wp_options table
- Where can I find the declaration of `$_wp_theme_features`?
- Why isn’t my custom Javascript showing up in my custom template?
- Why I’m Not Having Access to “$_POST” Data Outside My AJAX Callback?
- Display tab title as ‘blog tagline | blog title’
- Extend the WP_Customize_Image_Control class to change its non-frame $button_labels
- My customizer’s setting doesn’t set to the default and needed to click the control’s “Default” button before it’ll be set
- 500 (Internal Server Error) of external php file
- How can I correctly POST to a WordPress page?
- Dynamic Gallery
- WordPress causing all code to be displayed on line 1. Receiving multiple errors after cleaning cookies and cache
- Cannot get custom javascript to execute on page
- Pass a PHP variable (loop-audio.php) to jQuery function (js/script.js)
- JSON Object Value Show Undefine
- Adding jquery using php function
- How to hide .js files on wordpress website using php or wp plugins or any? [closed]
- notify users when changed database