Thread Starter
BeeCee
(@csigncsign)
how can I have the “via” and the twitter username as set in the plugin’s settings in the tweet box:
View post on imgur.com
like here:
https://www.marieforleo.com/2016/03/time-management/
Shortcode:
[bctt tweet="Test for better-click-to-tweet plugin blablablba" username="mytwitterusername" prompt="Tweet this"]
Hi there,
Thanks for clarifying with the link to Marie’s site. That’s being done with custom code on their site. You’d have to reach out to them for the exact code, but it’s really a sharp implementation and example of how to extend Better Click To Tweet.
By default, the via is only sent after the click, not displayed on the front end of the site.
I’m interested in how they did that as well, but that’s not something I’d be able to help you to implement as a part of free support, here.
Thanks for reaching out!
Thread Starter
BeeCee
(@csigncsign)
thank you for getting back to me … okay, I understand … I will try to contact her, thank you.
Hi, You can use for example filter. Just place below code into function.php
add_filter('bctt_output','bctt_customize_output');
function bctt_customize_output($output){
$output = str_replace("</span><a","</span><span class='via'>via @yourtwitter</span><a", $output);
return $output;
}