Mobile menu will only toggle on

Please read this documentation https://developer.wordpress.org/reference/functions/wp_nav_menu/ menu_id (string) The ID that is applied to the ul element which forms the menu. The default is the menu slug, incremented. container_id (string) The ID that is applied to the container. Try to add container_id in wp_nav_menu array(), I hope it’ll help you out. Thanks wp_nav_menu(array( ‘theme_location’ => ‘header-menu’, … Read more

Eliminate Render blocking CSS?

Generally you can’t impact when and how your plugins are loading their own stylesheets. Messing around with that will usually mean you can never update because it’ll reset all your work. That’s the trade off of using plugins – you lose control over some things that impact your performance, accessiblity, and validation. Without astronomical budgets … Read more

WordPress shortcode plugin not working

You can avoid to declare that player is a dependency for your javascript file, the problem is that Jquery isn’t recognized. Change this line: wp_enqueue_script( ‘main’, plugins_url( ‘/main.js’ , __FILE__ ),array(“jquery”,”player”),’0.0.3′,true); into this: wp_enqueue_script( ‘main’, plugins_url( ‘/main.js’ , __FILE__ ), [“jquery”] ); Also avoid to enqueue your script in the footer.

Include Facebook Javascript SDK In WordPress

I’m assuming you’re referring to the header.php file of your theme. In that case, it’s as easy as just enqueueing the script by appending this function to your theme’s functions.php file: function enqueue_facebook_javascript_sdk(): void { wp_enqueue_script( ‘facebook-javascript-sdk-initializer’, get_template_directory_uri() . ‘/path/to/your/initializer.js’ ); wp_enqueue_script( ‘facebook-javascript-sdk’, ‘https://connect.facebook.net/en_US/sdk.js’, array(), null ); return; } add_action( ‘wp_enqueue_scripts’, ‘enqueue_facebook_javascript_sdk’ ); The first … Read more

Embed Kajabi into WP

Welcome to WPSE. When asking a question it is recommended to include your research and what you’ve already tried in your question. One option would be to turn the script into a shortcode with add_shortcode(). With a custom shortcode you can have any Kajabi form anywhere on your site as long as the shortcode takes … Read more

List unused javascript for easy removal

Is there a list somewhere of what each of these WordPress related javascripts do? There is no comprehensive list that does this, and many of those items would not appear on it as they’re not WordPress internal files or may be required by non-WordPress files to function. Those files may be built to require them … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)