Support » Plugin: Alligator Popup » conflict with Avada Theme

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author cubecolour

    (@numeeja)

    ɹoʇɐɹǝpoɯ

    Where did you read that?

    As you are using a commercial theme I have no access to its code, so I cannot inspect the code to see how it is conflicting with Alligator Popup. I would suggest you contact your theme vendor to ask how to deactivate whatever built-in popup feature in the theme is interfering with the plugin.

    My best guess for a workaround for this is to hack the Alligator Popup plugin to change the class used to trigger the popup, but be aware that any changes made will be overwritten on the next plugin update unless you rename the plugin to prevent it being updated.

    To do this, substitute the word ‘popup’ with a unique class name in:

    line 69 of alligator-popup.php:

    return '<a href="' . esc_attr($url) . '" class="popup" data-width="' . esc_attr($width) . '" data-height="' . esc_attr($height) . '">' . $content . '</a>';

    & line 3 of js/popup.js:

    $('.popup').click(function() {

    I read from one of the reviews. Changing the class name works. Thanks!

    I’ll have to use this fix until I could contact our Theme Vendor.

    Great Plugin! Thanks again!

    Ignore – sorry!

    Plugin Author cubecolour

    (@numeeja)

    ɹoʇɐɹǝpoɯ

    In the current version (1.1.0) of alligator popup, the ‘popup’ class is now defined in Line 110 of alligator-popup.php
    This class is still targeted in line 3 of popup.js you would need to change both values if you need to change the class. You also need to take care when updating.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘conflict with Avada Theme’ is closed to new replies.