How to add new sharing button

Posted in: Newspaper
Post count: 13

Hi,there.

I’d like to know the additional sharing button.
I read old forum but I could’t find exact answer and some answer is old.

“td_social sharing” in /include/wp_booster seems to be pertinent section but no effect to Sharing on Theme Panel.

added to this code.

private static function get_service_share_info($service_id) {
$page_permalink = esc_url(get_permalink());
$page_id = get_the_ID();
$page_title = get_the_title();

switch ( $service_id ) {

case 'facebook':
return array(
'url' => 'https://www.facebook.com/sharer.php?u=' . urlencode($page_permalink),
'title' => 'Facebook'
);
break;

case 'twitter':
$twitter_user = td_util::get_option( 'tds_tweeter_username' );
return array(
'url' => 'https://twitter.com/intent/tweet?text=' . htmlspecialchars(urlencode(html_entity_decode($page_title, ENT_COMPAT, 'UTF-8')), ENT_COMPAT, 'UTF-8') . '&url=' . urlencode($page_permalink) . '&via=' . urlencode( $twitter_user ? $twitter_user : get_bloginfo( 'name' ) ) ,
'title' => 'Twitter'
);
break;

Do I have to change other code as well??

Post count: 22421

Hello,

In order to add a new sharing button. Please use this method: https://forum.tagdiv.com/topic/how-to-add-xing-as-a-social-network/

Thank you!

Post count: 13

Hi,

I can add “SHOW SOCIAL ICONS” with your advise but I’d like to add new share button.

How to add the button to
THEME PANEL > POST SETTING > Sharing > SOCIAL NETWORKS ??

After added, I want to choose some of buttons.

Post count: 22421

Hello,

Unfortunately there is no simple way to add a new sharing button in the post sharing options. The new theme sharing functionality is much more complex and multiple adjustments have to be made in order to add a new button. Sorry but we cannot ofer any custom work at the moment so you will have to hire a freelancer to help out with the code.

Thanks.

Viewing 4 posts - 1 through 4 (of 4 total)
The forum ‘Newspaper’ is closed to new topics and replies.