Jump to content
HH Services Limited

Modifying smartblog add this button module, how?

Recommended Posts

Hi, the "smartblog add this button" module as it shows in the attached picture shows too many unnecesary options that will most likely will remain on cero. Also the 1st box containing the fbook button is unusefull since no matter how many times you share the post on face book it always stays on cero. Please see attached picture to have a better idea of what I am trying to get. Where should I make modifications so that no numbers show next to the share buttons andshow only the share buttons?

Thanks.

 

post-794866-0-49815300-1466579751_thumb.png

Edited by HHServices (see edit history)

Share this post


Link to post
Share on other sites

Hi, I am having the same issue, I hope that someone can be kind and give some light into it. :rolleyes:

Share this post


Link to post
Share on other sites
Uninstall and delete the no good smartbloggaddthisbutton module

Add between lines 25 and 26 or 44 and 45 of posts.tpl (public_html/modules/smartblog/views/templates/front) this:

<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-{$addthis_api_key}"></script>

 

<div class="addthis_toolbox addthis_default_style addthis_20x20_style" addthis:url="http://ww.addthis.com">

<a class="addthis_button_facebook"></a>

<a class="addthis_button_twitter"></a>

<a class="addthis_button_pinterest_share"></a>

<a class="addthis_button_reddit"></a>

<a class="addthis_button_linkedin"></a> 

<a class="addthis_counter addthis_pill_style"></a>

</div>

 

No more counters, just share buttons...

  • Like 1

Share this post


Link to post
Share on other sites

Using the code above results in:

 

JSMin: Unterminated String at byte 197: 'd code on line 125

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More