Twitter Sharing – disable the "via @Username"

Posted in: Newspaper
Post count: 10

Hi TagDiv,

I need to disable the “via” part of the twitter sharing feature. By default if the Twitter username setting if empty it add the site name.

Is there a way by a code override or a hook to withdraw this “via” part ?

Thanks.

Post count: 27744

Hello,

Please check this topic https://forum.tagdiv.com/topic/remove-via-from-twitter-shares/

Thank you!

Post count: 10

Hello @Anamaria,

Thanks for trying to help.

Your answer is outdated.

There is now a td_social_sharing class located at wp-content/plugins/td-composer/legacy/common/wp_booster/td_social_sharing.php

I was able to find a (poor) way with a mu-plugin to override the whole class… just to remove the “via” part.


add_action('tdc_init', function() {
td_api_autoload::delete('td_social_sharing');
td_api_autoload::add('td_social_sharing', __DIR__ . '/includes/td_social_sharing.php');
}, 11);

But like I said, it’s a poor way, forcing me to be vigilant at each theme updates to reproduce td_social_sharing updates.

It is a pity that your theme is not more developer friendly.

Post count: 35449

Hi Zelda,
I added this as a suggestion to our list and I hope that there will be adding an option for it.
Thank you!

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