11 years ago
3
Topic

Hello,


How can I add a google+ and a facebook like & share button to a search type item ?


Thank you very much,

Ofer

Get a VIP membership
154 Posts
WebOne
11 years ago
0
Level 1

The following is a good solution to include a like button (you will probably require a template override or custom template) :

http://techjoomla.com/jlike.html

97 Posts
Anjo
11 years ago
0
Level 1

Hi Ofer, I use the code below in a custom template for addthis dropdown widget. Take note that I created my own image stored in (./images/share.png). The $url=.... code calls the right page where the widget is accessed and (data_track_addressbar":false) can be changed to true to track data on addthis account.


<div style="border:0;padding-bottom:20px;">
 <!-- AddThis Button BEGIN -->
  <a class="addthis_button" href="http://www.addthis.com/bookmark.php?v=300&amp;pubid=ra-4faf669928e60500" addthis:url="<?php
  $url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; echo $url;?>"><img src="/./images/share.png" width="115" height=  "28" alt="Bookmark and Share" /></a>
  <script type="text/javascript">var addthis_config = {"data_track_addressbar":false};</script>
  <script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-4faf669928e60500"></script>
    </div>  
<!-- AddThis Button END -->

11 years ago
0
Level 1

Hi WebOne and Anjo,

Thank you so much for the great explanations.

My next question will be from a stand point of a a SEBLOD rookie/apprentice:

What file do i have to override? and if I would do so, will all the other fileds of the search type item will be lost/deleted ?

The purpose of adding google+/ fb like & share is to still keep all the fields as they are  + adding the the social buttons.

Thank you very much again,

Ofer.

ProfilU

Get a VIP membership