Title: WordPress Tabs problem
Last modified: December 20, 2021

---

# WordPress Tabs problem

 *  Resolved [pakopakko](https://wordpress.org/support/users/pakopakko/)
 * (@pakopakko)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/wordpress-tabs-problem-2/)
 * Hi,
    I have some problems when used in wordpress “Tabs” elements. In the first
   tab everything is ok, in the second, third, etc it does not load the map correctly.
   Can anything be done? Thanks.
 * M.

Viewing 11 replies - 1 through 11 (of 11 total)

 *  Plugin Author [Joe](https://wordpress.org/support/users/morehawes/)
 * (@morehawes)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/wordpress-tabs-problem-2/#post-15182422)
 * Hi [@pakopakko](https://wordpress.org/support/users/pakopakko/),
 * Thanks for reaching out. I don’t really follow you, could you please provide 
   some more details, ideally with a link to your site?
 * Cheers,
 * Joe
 *  Thread Starter [pakopakko](https://wordpress.org/support/users/pakopakko/)
 * (@pakopakko)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/wordpress-tabs-problem-2/#post-15183955)
 * Hi Joe,
    now there is another problem, backend only works on the first tab, frontend
   doesn’t work at all… Wordpress 5.8.2, Avada theme v7.6… Here a test link to the
   site ([https://www.lestradedeivaldesi.com/itinerariofuturo/prigionia/](https://www.lestradedeivaldesi.com/itinerariofuturo/prigionia/))
 * Cheers
 * M.
 *  Plugin Author [Joe](https://wordpress.org/support/users/morehawes/)
 * (@morehawes)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/wordpress-tabs-problem-2/#post-15186089)
 * Hi [@pakopakko](https://wordpress.org/support/users/pakopakko/),
 * I am seeing many console errors when I view your site, but nothing related to
   Waymark. My guess would be that these other errors are preventing Waymark from
   loading.
 * If I am missing something and you have found something that points towards a 
   problem with Waymark, please do let me know.
 * Cheers,
 * Joe
 *  Thread Starter [pakopakko](https://wordpress.org/support/users/pakopakko/)
 * (@pakopakko)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/wordpress-tabs-problem-2/#post-15187632)
 * Hi Joe,
    sorry for errors, now there is just 4 “Uncaught ReferenceError: jQuery
   is not defined”. I can’t understand if it’s a Waymark or wordpress or theme error
   or if I’m doing something wrong. The test link it’s always the same.
 * M.
 *  Plugin Author [Joe](https://wordpress.org/support/users/morehawes/)
 * (@morehawes)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/wordpress-tabs-problem-2/#post-15202548)
 * Hi [@pakopakko](https://wordpress.org/support/users/pakopakko/),
 * > Uncaught ReferenceError: jQuery is not defined.
 * I see this too. There does appear to be a conflict. I recommend making a **backup**
   of your WordPress install and then systematically disabling other plugins one
   by one (starting with [performance plugins](https://www.waymark.dev/forums/topic/conflicts-with-performance-plugins/)),
   each time clearing your browser cache and checking to see if Waymark can load.
 * If you do identify an issue please do let me know!
 * Cheers,
 * Joe
 *  Thread Starter [pakopakko](https://wordpress.org/support/users/pakopakko/)
 * (@pakopakko)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/wordpress-tabs-problem-2/#post-15203397)
 * Hi Joe,
    i don’t have any performance plugins installed and even trying to disable
   them one by one, cleaning the cache every time, Waymark fails to load. You think
   you can do something or I have to find another solution?
 * Cheers,
 * M.
 *  Plugin Author [Joe](https://wordpress.org/support/users/morehawes/)
 * (@morehawes)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/wordpress-tabs-problem-2/#post-15205134)
 * Hi [@pakopakko](https://wordpress.org/support/users/pakopakko/),
 * I spent some time on this and the problem is that jQuery (a JavaScript library,
   required by Waymark) is being loaded inside the `<footer>` element on your site,
   and not the `<header>`.
 * I created [this](https://www.waymark.dev/temp/lestradedeivaldesi.html) to show
   the results of adding it into the `<head>`.
 * This would be determined by your theme, but it is a bug in Waymark that this 
   causes an error. I will look into a fix for this, but in the mean time you could
   try adding this to your (child) theme’s functions.php (from [here](https://wordpress.stackexchange.com/a/111569)
   and **untested**):
 *     ```
       function insert_jquery(){
       wp_enqueue_script('jquery', false, array(), false, false);
       }
       add_filter('wp_enqueue_scripts','insert_jquery',1)
       ```
   
 * If that does not work, then you could try this work-around:
 *     ```
       function head_add_jquery() {
         echo '<script type="text/javascript" src="https://www.lestradedeivaldesi.com/wp-includes/js/jquery/jquery.min.js?ver=3.6.0"></script>';
       }
       add_action('wp_head', 'head_add_jquery');
       ```
   
 * I hope this helps.
 * Cheers,
 * Joe
 *  Thread Starter [pakopakko](https://wordpress.org/support/users/pakopakko/)
 * (@pakopakko)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/wordpress-tabs-problem-2/#post-15206231)
 * Hi Joe,
    so, the second solution works but in part, there is always the problem
   of the second part of the page where in “Tappa2”, “Tappa3” it does not work correctly.
   I also tried to use different browsers but the result its the same. Do you think
   it is possible to do something?
 * M.
 *  Plugin Author [Joe](https://wordpress.org/support/users/morehawes/)
 * (@morehawes)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/wordpress-tabs-problem-2/#post-15208058)
 * Hi [@pakopakko](https://wordpress.org/support/users/pakopakko/),
 * This kind of integration is outside the scope of support for this plugin, but
   I came up with a _quick_ JavaScript solution for you:
 *     ```
       <script type="text/javascript">
       jQuery(document).ready(function() {
         jQuery('.tab-link').each(function() {
           jQuery(this).on('click', function() {
             setTimeout(function() {
               window.dispatchEvent(new Event('resize'));
             }, 250);
           });
         });
       });
       </script>
       ```
   
 * You can see this working [here](https://www.waymark.dev/temp/lestradedeivaldesi.html).
 * I hope this helps.
 * Cheers,
 * Joe
 *  Thread Starter [pakopakko](https://wordpress.org/support/users/pakopakko/)
 * (@pakopakko)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/wordpress-tabs-problem-2/#post-15208765)
 * What can I say, thank you so much for the help Joe!
    Happy new year and good 
   luck with everything!
 * M.
 *  Plugin Author [Joe](https://wordpress.org/support/users/morehawes/)
 * (@morehawes)
 * [4 years, 5 months ago](https://wordpress.org/support/topic/wordpress-tabs-problem-2/#post-15209727)
 * You are welcome. Please leave a [review](https://wordpress.org/support/plugin/waymark/reviews/#new-post)
   if you find the plugin useful.
 * Cheers,
 * Joe

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘WordPress Tabs problem’ is closed to new replies.

 * ![](https://ps.w.org/waymark/assets/icon-256x256.png?rev=3491393)
 * [Waymark](https://wordpress.org/plugins/waymark/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/waymark/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/waymark/)
 * [Active Topics](https://wordpress.org/support/plugin/waymark/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/waymark/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/waymark/reviews/)

 * 11 replies
 * 2 participants
 * Last reply from: [Joe](https://wordpress.org/support/users/morehawes/)
 * Last activity: [4 years, 5 months ago](https://wordpress.org/support/topic/wordpress-tabs-problem-2/#post-15209727)
 * Status: resolved