Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1333118

    Hi there,
    I want to change the links on the social media share icons.
    For example the link to Facebook – after clicking the Facebook icon, I want to open a popup and let people know that they are leaving my page.

    Ygit made a suggestion in answer #783467 that doesn’t work on my website.
    I put this code on the functions.php:

    add_filter(‘avia_social_share_link_arguments’, ‘avia_add_social_share_link_arguments’, 10, 1);
    function avia_add_social_share_link_arguments($args)
    {
    $args[‘facebook’][‘pattern’] = “http://kriesi.at”;
    $args[‘twitter’][‘pattern’] = “http://kriesi.at”;
    $args[‘gplus’][‘pattern’] = “http://kriesi.at”;
    $args[‘pinterest’][‘pattern’] = “http://kriesi.at”;
    return $args;
    }

    Do I have to pay attention to anything else?
    Do you can help me?

    Best regards
    Grobi

    #1333360

    Hey Grobi,
    Can you link to the thread #783467 I’m not able to find it by the reply ID.
    But looking at this filter it doesn’t look like it will open a popup and let people know that they are leaving your site, this filter looks like it changes the social media share URL, but I don’t believe you really want this, as I understand your question you still want the social media share URL’s to point correctly, you just want a popup warning first, in this case the above solution is not for you.
    I would recommend a plugin like Exit Notifier

    Best regards,
    Mike

    #1333670

    Hi Mike,
    Thank you for answering!!

    Yes, exactly, I wanted to put a call for a popup behind the social share icon and then integrate my original Facebook link into a button in the popup. But that doesn’t seem to work because the share icon has a kind of “standard link” and my popup does not start.
    As you recommended it to me, I’ll try the plugin.
    And keep you informed.

    And then I am sorry, but I was not able to copy and paste some numbers….
    The reply of Ygits post has this code (not the other one I wrote above): #783410
    And the threads name is: “How to edit links of social media buttons?”

    Best regards and if we don’t hear from each other before – many thanks to you and all the guys in that great enfold supporters-team!
    enjoy christmas-days and stay healthy
    Grobi

    #1333753

    Hi,
    Ok I found the thread here, as I thought this filter removes the special “share link” with a standard link, if you use this the buttons will not be share buttons anymore and trying to add the special “share link” into the popup would be trickier than it looks.
    I believe that you will not need to use this if you use a plugin like Exit Notifier, please test without this code.
    Merry Christmas to you also.

    Best regards,
    Mike

    #1333882

    Mike – perfect! Exactly what I needed!
    Thank you very much.
    Have a nice christmas.
    Grobi

    #1333897

    Hi,
    Glad we were able to help, if you have any further questions please create a new thread and we will gladly try to help you. Thank you for using Enfold.
    Have a Merry Christmas.

    Best regards,
    Mike

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Links der Social Media Share Icons ändern’ is closed to new replies.