Board index PBase HTML and Style Sheets removing social sharing buttons ?

HTML and Style Sheets

removing social sharing buttons ?

Customize your galleries.
oochappan
 
Posts: 131

removing social sharing buttons ?

Post Sun Jul 31, 2011 8:16 pm


is it possible to remove these social sharing buttons from your layout also for others with a CSS that could block facebook.js and plusone.js from loading ?

mardoli
 
Posts: 585

Re: removing social sharing buttons ?

Post Mon Aug 01, 2011 5:14 am


oochappan wrote:is it possible to remove these social sharing buttons from your layout also for others with a CSS that could block facebook.js and plusone.js from loading ?

Well, I think I have found, but I don’t know if it’s a good method…
It seems to work for me.
It’s necessary to add the same line of code to all our CSS

Code: Select all
#socialSharing{display:none}


and then ll the buttons are invisible also for visitors who have not disabled the option in their own settings.
Probably there are better ways, but this is all what I have found so far.
Best
Marisa
ImageImage
"Arguments are to be avoided; they are always vulgar and often convincing."
~Oscar Wilde~

oochappan
 
Posts: 131

Re: removing social sharing buttons ?

Post Mon Aug 01, 2011 5:44 am


mardoli wrote:
Code: Select all
#socialSharing{display:none}
Marisa


Perfect, I overlooked but you found the tag .....
it removes the whole span of g:plusone, fb-root, fb:like ... excellent,
killing two birds with one stone (and maybe future aliens too) in the most efficient way I believe .
Thanks a lot , hats off for solving my request, you were so quick !

(Belgian heraldic device alike: L'union fait la farce)

imorozoff
 
Posts: 1008

Re: removing social sharing buttons ?

Post Mon Aug 01, 2011 1:41 pm


mardoli wrote:It’s necessary to add the same line of code to all our CSS

Code: Select all
#socialSharing{display:none}


and then ll the buttons are invisible also for visitors who have not disabled the option in their own settings.



Bravo! Thank you for your efforts at finding the resolution! Much appreciated.


Board index PBase HTML and Style Sheets removing social sharing buttons ?

Who is online

Users browsing this forum: No registered users and 1 guest