• Resolved marcosmixlife

    (@marcosmixlife)


    Hi,

    I have a bug with the copy link button. There is no mouse hover effect on it like the other buttons. And there is no message or anything that the user can see that the action was successfull.

    So the copy link button is working, but there is no visual indication on screen that it worked.

    Can this be fixed?

    Thank you

    The page I need help with: [log in to see the link]

Viewing 7 replies - 1 through 7 (of 7 total)
  • Plugin Support Efe Dinler

    (@efedinler1)

    Hi @marcosmixlife,

    Thank you for your message!

    Our team is currently checking the issue nad we will get back to you as soon as possible.

    • This reply was modified 1 year ago by Efe Dinler.
    Plugin Support Efe Dinler

    (@efedinler1)

    Hi @marcosmixlife,

    Thank you for your patience! I have word from our development team for a solution. Please add the following code to your “functions.php” file;

    add_action('wp_footer', function () {
        ?>
        <script>
            jQuery(document).ready(function ($) {
                $(document).on('click','#sfsiid_copylink_icon', function () {
                    alert('URL has been copied successfully!')
                });
            });
    
        </script>
        <?php
    });

    You can also change the “URL has been copied successfully!” line to something else if you’d like to prompt a custom message.

    Does it work? Please let me know too ??

    Thread Starter marcosmixlife

    (@marcosmixlife)

    Hello,

    Thanks for the update, this could work, however, this site is multilingual, so we have 3 different languages using Polylang.

    Can this code’s message adapt to 3 different languages?

    Thank you

    Plugin Support Efe Dinler

    (@efedinler1)

    Hi @marcosmixlife,

    For that, you can use the following code instead;

    add_action('wp_footer', function () {
        ?>
        <script>
            jQuery(document).ready(function ($) {
                $(document).on('click','#sfsiid_copylink_icon', function () {
                    alert( <?php _e('URL has been copied successfully!', 'ultimate-social-media-icons'); ?>')
                });
            });
    
        </script>
        <?php
    });
    Thread Starter marcosmixlife

    (@marcosmixlife)

    Hello,

    Ok, but how can i add the translation for that message with that code? The string doesn’t show up on the polylang translations page.

    Thanks

    Plugin Support Efe Dinler

    (@efedinler1)

    Hi @marcosmixlife,

    Another feedback from our developers;

    “We see that the user also uses the Elementor theme on their website. The following code causes the text “URL has been copied successfully!” to be added to the theme texts. It should be translatable afterward by using translation plugins like Loco;

    add_action('wp_footer', function () {
        ?>
        <script>
            jQuery(document).ready(function ($) {
                $(document).on('click','#sfsiid_copylink_icon', function () {
                    alert(' <?php _e('URL has been copied successfully!', 'hello-elementor-child'); ?>')
                });
            });
    
        </script>
        <?php
    });
    

    Would this be more helpful? Let me know how it goes ??

    Plugin Support Efe Dinler

    (@efedinler1)

    Hello @marcosmixlife,

    We haven’t heard from you since, so I’ll assume that the issue is resolved and will close this support ticket. If you face any new issues, please feel free to open a new ticket.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Copy link button error’ is closed to new replies.