Dustin Cabeal
asked 10 years ago

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

3 Answers
Wilfred
answered 10 years ago

Hi Dustin,
I still don’t get the issue yet.
Can you send me your site URL, screenshot of your issue for further checking?

Dustin Cabeal
replied 10 years ago

Hi Wilfred,

Here’s a the website http://comicbastards.com/

http://imgur.com/eL8K5p3

Wilfred
answered 10 years ago

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 !

Dustin Cabeal
replied 10 years ago

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?

Wilfred
answered 10 years ago

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,  

Powered by DW Question & Answer Pro