Problem/Motivation

I wanted to disable the URL hashtags, which were set by default.

Proposed resolution

1. Manually edit the code

I found relevant code in my theme's page.tpl.php file in my templates folder and changed it to the following:

<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "PUBLISHER_ID", doNotHash: true, doNotCopy: true, hashAddressBar: false});</script>

Where "PUBLISHER_ID" is your unique publisher id with sharethis.com. I changed "doNotHash" to "true", and "hashAdressBar" to "false".

2. Implement a button in the UI

Not sure how to do this.

Remaining tasks

Implement a UI feature to enable/disable URL hashtags.

User interface changes

None

API changes

None

#1919798: Add custom hash tag + text to the URL

Original report by [intactivist]

I was looking to disable the URL hashtags, but there's no UI for that. So I found the relevant code in my theme's page.tpl.php file and changed the code to:

<script type="text/javascript" src="http://w.sharethis.com/button/buttons.js"></script>
<script type="text/javascript">stLight.options({publisher: "PUBLISHER_ID", doNotHash: true, doNotCopy: true, hashAddressBar: false});</script>

Where "PUBLISHER_ID" is your unique publisher id with sharethis.com. I changed "doNotHash" to "true", and "hashAdressBar" to "false".

Related:
#1919798: Add custom hash tag + text to the URL