• Resolved BeeCee

    (@csigncsign)


    WP 4.9.6
    Plugin 5.4.3

    the “via” in the Tweet-Box does not appear at all, ALTHOUGH I had added it in the plugin settings. There is only the tweet text and the button, no “via”, no twitter name.

    Any fix please?
    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • 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"]

    Plugin Contributor wpsteward

    (@wpsteward)

    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;
    }
Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘“via” does not appear at all’ is closed to new replies.