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
Hello Jeroen
Thank you for your quick response. I will try and find another solution.
Kind regards,
Sheila
No problem @sheilanana, good luck!
Kind regards, Jeroen Peters
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
Thanks for sharing @sheilanana , that will help others
Very nice!