Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author Jeroen Peters

    (@jeroenpeters1986)

    Hi @sheilanana ,

    Thanks for using my plugin and your message. I did not know the Popup Maker plugin before, but you are right. These two plugins are not compatible. So you did nothing wrong.

    The way the pop-up plugin triggers the pop-up (with JavaScript and #123-urls), will not work in this dropdown.
    The dropdown in my plugin (a ‘select’ tag, in HTML) is not capable of this.

    The Pop-up Maker is designed to work with ‘a’ tags (links), which is how the native WordPress menus work.

    I am sorry but I don’t think they will become compatible because of the way both of the plugins work.

    Kind regards,

    Jeroen Peters

    • This reply was modified 4 years, 2 months ago by Jeroen Peters.
    Thread Starter sheilanana

    (@sheilanana)

    Hello Jeroen

    Thank you for your quick response. I will try and find another solution.

    Kind regards,
    Sheila

    Plugin Author Jeroen Peters

    (@jeroenpeters1986)

    No problem @sheilanana, good luck!

    Kind regards, Jeroen Peters

    Thread Starter sheilanana

    (@sheilanana)

    Hi Jeroen

    I just want you to know that I found a solution, in case someoneelse want’s to know.
    add this to child theme functions.php:

    function custom_dropdown_popmake_trigger() { ?>
        <script>
    (function($){
       $('#select_jp_dropdown_menu_widget-2 option').addClass(function() {
        return this.value.replace("#", "");
    });
    	$('#select_jp_dropdown_menu_widget-2').change(function(){
    	$(this).find(':selected').click()
    });
    })(jQuery);
    </script>
        <?php
    }
    add_action('wp_footer', 'custom_dropdown_popmake_trigger');

    I hope you have a great day.

    Best regards,
    Sheila

    Plugin Author Jeroen Peters

    (@jeroenpeters1986)

    Thanks for sharing @sheilanana , that will help others

    Very nice!

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

The topic ‘Popups disappear when activating this plugin’ is closed to new replies.