Yunus Beçit
asked 8 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 ?

1 Answers
answered 8 years ago

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 8 years ago

Hi when I use this way its give me this error:”Parse error: syntax error, unexpected T_STRING in /home/ on line 437″

Yunus Beçit
replied 8 years ago

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

Dominic Staff
replied 8 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