WordPress.org

Ready to get started?Download WordPress

Forums

Hupso Share Buttons for Twitter, Facebook & Google+
[resolved] Controlling share text (5 posts)

  1. mchamma
    Member
    Posted 1 year ago #

    I'd like to be able to set the share text myself as opposed to having just the 3 options (web tile, post title or generic custom text). I want to have multiple share toolbars on a post, with each section of my post having different share text.

    I noticed that the function gets passed the variable hupso_title_t to set the share text. Would it be possible to set the text myself easily? I don't want to do extensive updates on the plugin. One thing I could suggest is making the share text available as a parameter to the short code, such as [hupso text="Bla Bla"]. Is something like this available or is there another easy method to set the text myself?

    Thanks.

    http://wordpress.org/extend/plugins/hupso-share-buttons-for-twitter-facebook-google/

  2. mchamma
    Member
    Posted 1 year ago #

    Actually if I pass the variable hupso_title_t to the HTML custom code as mentioned on hupso.com it works.

    I'm new to WordPress and I'm not sure how to add the html code. When I add it using the visual editor it doesn't render properly. I want to add it to specific areas of my post. Any help is appreciated.

  3. kasal
    Member
    Plugin Author

    Posted 1 year ago #

    I will add this feature in the next version, so you will be able to do it like this:

    [hupso title="New title"]

  4. mchamma
    Member
    Posted 1 year ago #

    Thanks Kasal. I used your plugin in conjunction with the shortcoder plugin and got it to work and I can pass variables for text and url.

    I think adding share text and even url parameters will be a nice add on to the plugin but for now I'm ok if you have other enhancements you want to prioritize.

    Thanks for you help. I like your plugin. It's simple and easy to use.

  5. kasal
    Member
    Plugin Author

    Posted 1 year ago #

    This is now possible in version 3.9.3.

    From the FAQ:
    Can I set title and url as shortcode parameters?

    Yes. Include this shortcodes anywhere inside post's text or inside text widget: [hupso title="My title" url="http://www.hupso.com/share/"]. Replace title and url with your title and your url. You can also set only one of the parameters like this: [hupso title="My title"] or like this [hupso url="http://www.hupso.com/share/"].

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags