Hello,
I have problem with DW Fixel theme, there is a social share buttons in left side of post. When i click on Twitter share, i go to twitter page to share link in this form: “PostTItleLink” no space between title and link, so people must manual add space to be clickable link. How to fix it?
Thanks.
1 Answers
To resolve this issue, you can open the single.php file in the folder path “wp-content\themes\dw-fixel”. find the line 15. Replace the following code:
<li><a class="twitter" href="https://twitter.com/intent/tweet?source=webclient&text=<?php echo get_the_title() . rawurlencode( $url ) ?>" title="<?php _e('Share to Twitter',DW_TEXTDOMAIN) ?>" target="_blank"><i class="icon-twitter" /><span><?php echo dw_get_twitter_count( $url ); ?></span></a></li>
With new code:
<li><a class="twitter" href="https://twitter.com/intent/tweet?source=webclient&text=<?php echo get_the_title() .' '. rawurlencode( $url ) ?>" title="<?php _e('Share to Twitter',DW_TEXTDOMAIN) ?>" target="_blank"><i class="icon-twitter" /><span><?php echo dw_get_twitter_count( $url ); ?></span></a></li>
Hope this helps !
Thanks, it’s working!
Please login or Register to submit your answer