Forum Replies Created

Viewing 1 replies (of 1 total)
  • Thread Starter gkatem96

    (@gkatem96)

    Hello @inamoro, the issue is now fixed as I pasted a function in my functions.php file, as sent by the plugin creator.

    I will leave the function below for anyone facing the same issue in the future as reference:

    function ps2id_custom_script(){
        wp_register_script( 'ps2id-custom-script', '', array('jquery', 'page-scroll-to-id-plugin-script'), '', true );
        wp_enqueue_script( 'ps2id-custom-script' );
        wp_add_inline_script( 'ps2id-custom-script', '(function($){
            $(window).on("load",function(){
                $(document).on("click","#modal-1-content .wp-block-navigation-link ._mPS2id-h",function(){
                    $(".wp-block-navigation__responsive-container-close").trigger("click");
                });
            });
        })(jQuery);');
    }
    add_action( 'wp_enqueue_scripts', 'ps2id_custom_script' );
Viewing 1 replies (of 1 total)