Okay
  Public Ticket #1173691
Conflict with The Events Calendar
Closed

Comments

  • Stephan started the conversation

    After updating The Events Calendar from an old version to the current one, all header sizes have become ridiculously large and toggle groups no longer work. Any advice on a way to fix this so I can continue to use this plugin with Camyno?

  •  63
    Alek replied

    It's likely a JavaScript error that is being produced somewhere and causing the conflict, I visited your site and it appears to be working okay.

  • Stephan replied

    The issue was due to the script to replace the 'no-js' body class in header.php. TEC uses a similar approach to change their 'no-js-tribe' class to 'js-tribe'. Since their class was listed before Camyno's 'no-js' class, the pattern matching replaced their class, but not Camyno's. I resolved the issue by changing the script to:

    <script> document.body.className = document.body.className.replace(/\sno-js\s/,\
    ' js '); </script>

  • Steven replied

    I am having the same issue. Could you please walk me through this fix? I don't know what script we're changing or what I should look for. 

    I had to install a previous version of the events calendar in the meantime. 

    Thanks! 

  •  63
    Alek replied

    You need to edit the header.php template file.

    The code you need to replace can be found on line 43 and looks like this:

    <script> document.body.className = document.body.className.replace('no-js','js'); </script>

    Replace that with this:

    <script> document.body.className = document.body.className.replace(/\sno-js\s/, ' js '); </script>