Getting a jQuery library to work in WordPress & Avada

Here’s a tweaked version of the original code. get_template_directory_uri() is used instead of hard coding the URLs, the scripts and styles are enqueud rather than just being registered, and the dependencies are specified. <?php function wptuts_scripts_load_cdn() { wp_enqueue_script( ‘multi-select’, get_template_directory_uri() . ‘/selector/js/jquery.multi-select.js’, array( ‘jquery’ ), null, false ); // JavaScript for theme. Presumably where you’d … Read more

Responsive menu not expanding in footer

In ‘js’ directory in your child theme create file “navigation-footer.js” and paste following code: /** * Handles toggling the footer navigation menu for small screens */ ( function() { var nav = document.getElementById( ‘footer-navigation’ ), button, menu; if ( ! nav ) { return; } button = nav.getElementsByTagName( ‘button’ )[0]; menu = nav.getElementsByTagName( ‘ul’ )[0]; … Read more

How to add H1 Tag on Homepage?

For H1 Tag – “Top Shopping & Travel Deals”. Since you just want it static just adding <h1>Top Shopping & Travel Deals</h1> to a template is not hard. The likely hard part is determining which template is right place for it. You can consult with template hierarchy and check which templates theme has and which … Read more