WordPress.org

Support

Support » Plugins and Hacks » Tweet, Like, Google +1 and Share » HTML codes in title and Twitter

HTML codes in title and Twitter

  • I love the Tweet, Like, Share, +1 plugin A LOT but I’m having a bit of a problem.

    I use <em> codes in my post titles quite heavily because I’m referencing titles of shows; Facebook and Google can understand not to show the code themselves but when someone clicks on the tweet button they get nasty coding plus <em> ITALICIZED WORD </em>

    Is there any way to edit so that the plugin gets the_title_attribute (without the HTML markup) than just the_title?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author sudipto

    @sudiptomahato

    yes it can be done. But you need to edit the plugin code and remove the HTML tags from the title… Then passing the Title (without HTML tags) to the Twitter button script.

    Thanks for telling me it can be done!

    How exactly would I go about editing the plugin to work in my favor?

    Plugin Author sudipto

    @sudiptomahato

    First of all don’t try to edit the plugin if you are not familiar with PHP and also how WordPress works. Also never try to edit the plugin on your live site.

    You are required to display_social4i function.
    $ptitle contains the title of the post.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘HTML codes in title and Twitter’ is closed to new replies.
Skip to toolbar