Share button not hiding with CSS
patsy easley
Registered Users Posts: 91 Big grins
First off I LOVE the new buttons. The only problem I am having is that when easy sharing is enabled the share buttons are showing when I am logged out with the CSS coding that should prevent it. I was unable to get it fixed on my own so I disabled the share buttons. Is anyone else having this problem and does anyone know how to fix it.
0
Comments
It looks like the required CSS coding to show the Share button when logged in, but not when logged out has changed.
This CSS seems to work on my site in FF2 and IE7:
#shareButton {display:none;}
.loggedIn #shareButton {display:-moz-inline-box; display:inline-block;}
You could give it a try and let us know if it works for you.
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Thank you for the help!
the Site | the Blog | my Twitter | Facebook | Get $5 off your new SmugMug account
I'm checking with our devloper
Portfolio • Workshops • Facebook • Twitter
Just so you know the origin of this code Andy. The old way of making it visible "display:block" no longer works with the share button because it's laid out differently than it used to be, it's now in an inline span.
I got this code from the actual page itself, as it's the display style that the share button has when it's visible in a default page with no customization. I didn't invent this, I just looked at what a default share button had it's style as.
So, we display:none, when you don't want it and set the style the way it would normally be when you do want it.
The obvious downside to this change in the shareButton's style on the default page is that it breaks everyone who was trying to make it only visible when logged in.
Homepage • Popular
JFriend's javascript customizations • Secrets for getting fast answers on Dgrin
Always include a link to your site when posting a question
Portfolio • Workshops • Facebook • Twitter