Change Floating Sidebar Size?
-
Dear AddToAny,
May I ask:1. How do I change the size of the floating sidebar? If I want it bigger?
2. Is it possible to share the website URL through the floating sidebar? The url itself.
-
2. The floating share bar always shares the current URL by default. If you wanted to share one specific URL only for all of your share buttons, you could modify the share by using the following code in your AddToAny Settings > Additional JavaScript box:
a2a_config.callbacks.push({ share: function(share_data) { return { url: 'http://example.com/', title: 'My Website Title' }; } });Thank you!
1. Could you walk me through how to make such a button; I can copy & paste stuff in the right place, but I’m not too familiar with Javascript.
2. is not essential, but I was inspired by what Forbes does.
ie. if you look at the left-hand side there is a social share bar with a chain-link icon: http://www.forbes.com/sites/thomasbrewster/2014/09/26/wordpress-vulnerability-database-security/#71485fff6381Also, is there any reason why this Javascript doesn’t work for me?
a2a_config.num_services = 10;
You can see it on my website: http://therevisionist.org/1. Copy & paste the following CSS code into your “Additional CSS” box in AddToAny Settings:
.a2a_floating_style .a2a_svg { background-size: 48px; height: 48px; width: 48px; }Replace
48pxthrice with your desired size.2. Ah, now i realize you mean a literal “link” service. That one is under consideration, thanks for your feedback.
3. Yep, that’s a bug! Right now the number of services in the mini menu isn’t respected when there are “default” services (Facebook, etc.) being excluded as you’ve setup. I’ll see to it that this gets fixed within the next couple weeks.
Glad to have helped you find a bug! Thanks for the support!
The topic ‘Change Floating Sidebar Size?’ is closed to new replies.