simplesharebuttons icon indicating copy to clipboard operation
simplesharebuttons copied to clipboard

Twitter title page not displaying...

Open cedriccharles4 opened this issue 10 years ago • 3 comments

Hi and thanks for this great plugin.

When I tweet a page, I only have "mysite.com http://mysite.com/mypage". I want the page titre before all that.

Here is an example : http://www.ccilvn.be/agenda/networking/ramada-plaza-liege/

Thanks a lot, Cédric

cedriccharles4 avatar Apr 03 '14 15:04 cedriccharles4

Hello David,

first of all thanks for a great plugin, but I ran into the same problem. I had to tweak the plugin to make it show the page title in the twitter share. And I like tweaking, but not in plugins since it breaks update-ability.

Kind regards Pascal

iPasqualito avatar Apr 09 '14 12:04 iPasqualito

Hi both,

iPasqualito, can you please let me know how you achieved this so I can ensure that it is applied for the next update? Ideally, can you please submit a pull request?

Thanks,

David

davidsneal avatar Apr 12 '14 20:04 davidsneal

from line 878:

// format the URL into friendly code
//$twitterShareText = urlencode(html_entity_decode($strPageTitle . ' ' . $arrSettings['ssba_twitter_text'], ENT_COMPAT, 'UTF-8'));
$twitterShareText = urlencode(html_entity_decode('Vacature: ' . get_the_title($post->post_parent) . ' ' . $arrSettings['ssba_twitter_text'], ENT_COMPAT, 'UTF-8'));

It's a bit customized for this specific client so a pull request would not be a good idea... (that, and I'm kind of a newbie here, no clue how to submit one)

cheers Pascal

iPasqualito avatar Apr 12 '14 22:04 iPasqualito