Yunus Beçit
asked 10 years ago

Hi I have a problem with twitter share button. When I click to share button on post (any post) its convert to html codes. its convert quote symbol to this ’
How can I change it ?
 
example:http://i61.tinypic.com/2hdqsyw.png

1 Answers
DominicStaff
answered 10 years ago

Hi,
To resolve this issue, you open the functions.php file in the folder path “yourdomain/themes/dw-focus/functions.php” Find the line 437

replace the following code:
$title = rawurlencode( get_the_title() );

With new code:
$title = urlencode(html_entity_decode(get_the_title(), ENT_COMPAT, ‘UTF-8’));

Hope this helps !

Yunus Beçit
replied 10 years ago

Hi when I use this way its give me this error:”Parse error: syntax error, unexpected T_STRING in /home/digitalturkey.co/httpdocs/wp-content/themes/digitalturkey/functions.php on line 437″

Yunus Beçit
replied 10 years ago

I solve it. if you do it this way it worksexample:$title = html_entity_decode( get_the_title() );

Dominic Staff
replied 10 years ago

I will mark the “Resolved” status for this question, if you have any question, please create a new question, we will help you resolve it.

Powered by DW Question & Answer Pro