• Resolved moshe

    (@moshe1111)


    I have a few questions about your plugin, specifically regarding the popup that appears in the sidebar. I would appreciate your insights on the following:

    1. Is there a way to create a link that opens the side widget? (For example, I want to place a link on a button on the site that, when clicked, will open the sidebar.)
    2. Is it possible to change the background color of the entire page (e.g., darken the rest of the page) when the sidebar’s contact popup is opened?
    3. Can we implement anti-spam protection (such as using an Akismet key) for the sidebar?
Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Support Karina

    (@karinapremio)

    Hello, thanks for reaching out.

    Yes, you can open the My Sticky Elements widget using JavaScript. Please see here for more details: https://premio.io/help/mystickyelements/how-to-launch-the-contact-form-using-a-link-or-javascript-function/

    Unfortunately we don’t offer the option for an overlay when the sidebar fly-out is open.

    You can use reCeptcha for the contact form of the plug-in, please see here for more details: https://premio.io/help/mystickyelements/how-to-add-recaptcha/

    If you have any further questions, please don’t hesitate to ask! You can also open a ticket at [email protected].

    Thread Starter moshe

    (@moshe1111)

    With God’s help I was able to do all three things right now, including the third thing, using JS

    • This reply was modified 2 months, 3 weeks ago by moshe.
    Plugin Support Karina

    (@karinapremio)

    Perfect! If you have any further questions, please feel free to ask us at any time.

    Thread Starter moshe

    (@moshe1111)

    This is the code.
    The problem is that it can only track manual on and off and not through the original on and off. So I set it to turn off after 3 seconds.
    If you have a solution that is good.

    function custom_contact_form_overlay() {
    ?>

    <script type="text/javascript">
        document.addEventListener('DOMContentLoaded', function() {
            // ????? ???? ?????? ??????? ???? ?????
            var overlay = document.createElement('div');
            overlay.className = 'page-overlay';
            document.body.appendChild(overlay);
    
            // ??????? ????? ???? ???????
            function showOverlay() {
                overlay.style.display = 'block';
            }
    
            // ??????? ????? ???? ???????
            function closeOverlay() {
                overlay.style.display = 'none';
            }
    
            // ???? ??????? ???? ??????'? ????
            window.addEventListener('mystickyelements_open', function() {
                showOverlay();
    
                // ???? ??????? ???? 3 ?????
                setTimeout(function() {
                    closeOverlay();
                }, 3000);
            });
    
            // ???? ??????? ???? ??????? ?????
            window.addEventListener('mystickyelements_close', function() {
                closeOverlay();
            });
    
            // ?? ?????? ????? ??? ????, ??? ???? ?? ???? ??????? ????? ?? ??????'?
            var button = document.getElementById('open-contact-form');
            if (button) {
                button.addEventListener('click', function() {
                    showOverlay();
                    launch_mystickyelements(1); // ?? ?????? ????? ?? ?????
    
                    // ???? ??????? ???? 3 ?????
                    setTimeout(function() {
                        closeOverlay();
                    }, 3000);
                });
            }
        });
    </script>
    <?php

    }
    add_action(‘wp_footer’, ‘custom_contact_form_overlay’);

    <font _mstmutation=”1″></font>

    Plugin Support Karina

    (@karinapremio)

    I am sorry but it’s out of our support scope to support custom solutions not provided in the plug-in =( Apologies for any inconvenience.

    Thread Starter moshe

    (@moshe1111)

    Hi,

    Thank you for your response.

    On that note, I’m curious—are there any plans to add this feature to the plugin in future versions?

    Plugin Support Karina

    (@karinapremio)

    May I ask which feature exactly you are referring to? I will pass it to our product team right away.

    Thread Starter moshe

    (@moshe1111)

    I mean about the code I wrote on a background layer, a popular thing in contact popup plugins.

    Plugin Support Karina

    (@karinapremio)

    Thanks for clarifying! Can you send a link to your site so we can see the end result in considering this feature request?

    Thread Starter moshe

    (@moshe1111)

    Is there a way to send a private or hidden link?

    Plugin Support Karina

    (@karinapremio)

    Sure thing! You can email us at [email protected] .

Viewing 11 replies - 1 through 11 (of 11 total)
  • You must be logged in to reply to this topic.