Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #908109

    Hi,

    I want to replace the G+ social share button under the blogposts with a Xing button. I already added WhatsApp in my child themes functions.php with

    // Register new icon as a theme icon
    function avia_add_custom_icon($icons) {
    $icons[‘whatsapp’] = array( ‘font’ =>’whatsapp-font-icon’, ‘icon’ => ‘ue800’);
    return $icons;
    }
    add_filter(‘avf_default_icons’,’avia_add_custom_icon’, 10, 1);

    // Add new icon as an option for social icons
    function avia_add_custom_social_icon($icons) {
    $icons[‘Whatsapp’] = ‘whatsapp’;
    return $icons;
    }
    add_filter(‘avf_social_icons_options’,’avia_add_custom_social_icon’, 10, 1);

    //Add items on the social share section
    add_filter(‘avia_social_share_link_arguments’, ‘avia_add_social_share_link_arguments’, 10, 1);
    function avia_add_social_share_link_arguments($args)
    {
    $new_array = array(
    ‘whatsapp’ => array(
    “encode”=>true, “encode_urls”=>false, “pattern” => “whatsapp://send?text=[title]-[permalink]”
    )
    );

    return array_merge($new_array, $args);

    return $args;
    }

    How can I change G+ to Xing?

    Thanks.
    Heike

    #908370

    Hey DEmobilezeitgeist,
    Try editing /wp-content/themes/enfold/includes/helper-social-media.php
    on line 149, look for

    				'gplus' 	=> array("encode"=>true, "encode_urls"=>false, "pattern" => "https://plus.google.com/share?url=[permalink]" , 'label' => __("Share on Google+",'avia_framework')),

    and edit the name, url, & hover text (Share on Google+)
    My test shows that the icon and color also changes
    2018-02-05_233112

    Best regards,
    Mike

    #908435

    Hi Mike,

    Thank you! Worked like charm. As always your support is awesome!
    Cheers,
    Heike

    #908494

    Hi,
    Glad we were able to help, we will close this now. Thank you for using Enfold.

    Best regards,
    Mike

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Replace Social Share Button G+ With Xing’ is closed to new replies.