I have a problem on the DW Focus theme with the built in Twitter button. Whenever there’s a special character in the headline it produces extra characters like this:
Taking Out A Hit On JD Morvan The Writer of ‘Naja’
I’ve had to install wordpress share buttons as well so that people can tweet it properly so it looks like this:
Taking Out A Hit On JD Morvan The Writer of ‘Naja’
Any help solving this problem would be great so that I don’t have to have double share buttons or worse yet, people avoid sharing via twitter.
Thanks,
Dustin
Hi Dustin,
I still don’t get the issue yet.
Can you send me your site URL, screenshot of your issue for further checking?
Hi Dustin,
To resolve this issue please follow my instruction here:
1. Open functions.php file in /wp-content/themes/dw-focus/functions.php
2. Replace following code – line 411
$title = rawurlencode( get_the_title() );
with:
$title = get_the_title();
Hope this helps !
Hi Wilfred,
I ran into a problem today, now it’s not picking up special characters or anything past them. For instance on this page: http://comicbastards.com/review-x-12/
When you click the Twitter button it just says “Review: X” when it should say “Review: X #12”
Is there a way to pick up the special characters, but not have it become all scrambled liked before?
My apology for this late in replying.
The error is because the Twitter’s API removed the special characters when clicking on the twitter button. So there is no option to fix this bug.
If anything else you need further assistance, don’t hesitate to contact us.
Regards,
Please login or Register to submit your answer