WordPress.org

Ready to get started?Download WordPress

Forums

Share Buttons by AddToAny
[resolved] Change part of URL being shared (2 posts)

  1. llazarus
    Member
    Posted 4 months ago #

    Is it possible to change the base part of an URL being shared?

    For example:

    http://lazworks.azurewebsites.net/2013/12/06/microsoft-publishes-guidelines-for-apps-to-use-skydrive/

    Change the lazworks.azurewebsites.net portion to www.lazworks.net

    http://wordpress.org/plugins/add-to-any/

  2. micropat
    Member
    Plugin Author

    Posted 4 months ago #

    Changing your WordPress site URL is most ideal and definitely the preferred option because your visitors will sometimes copy & paste the current URL to share your content anyway.

    An alternative would be to manually hardcode the sharing plugin's template code into your theme. Check out the FAQ:
    http://wordpress.org/plugins/add-to-any/faq/

    For example, your theme's author could help you customize and place the following template code for your site:

    <?php if( function_exists('ADDTOANY_SHARE_SAVE_KIT') ) {
        ADDTOANY_SHARE_SAVE_KIT( array("linkname" => "Example Page Title", "linkurl" => "http://www.lazworks.net/2013/12/06/microsoft-publishes-guidelines-for-apps-to-use-skydrive/") );
    } ?>

    Again, changing WordPress' site URL is the better way.

Reply

You must log in to post.

About this Plugin

About this Topic

Tags

No tags yet.