A adição de uma barra flutuante de compartilhamento social pode melhorar muito a visibilidade do seu conteúdo e incentivar os leitores a promovê-lo nas mídias sociais. Uma barra flutuante permanece com o usuário enquanto ele rola a página, facilitando o compartilhamento do conteúdo a qualquer momento.
Ao administrar nossos próprios sites, vimos o impacto das barras flutuantes de compartilhamento social na promoção do engajamento e no aumento do tráfego. Ao adicionar estrategicamente esse recurso aos nossos sites, observamos um aumento notável nos compartilhamentos sociais e um alcance maior para o nosso conteúdo.
Quer você administre um blog ou uma empresa, adicionar uma barra flutuante de compartilhamento social pode ser uma maneira simples de incentivar o envolvimento e expandir sua presença on-line.
Neste artigo, vamos orientá-lo no processo de adição de uma barra flutuante de compartilhamento social ao seu site WordPress. Nossas instruções passo a passo simplificam o processo até mesmo para iniciantes.
Por que adicionar uma barra flutuante de compartilhamento social no WordPress?
A adição de uma barra de compartilhamento social proeminente facilita para os visitantes compartilharem seu conteúdo em plataformas de mídia social como Instagram, Facebook e Twitter. Ao manter essa barra visível durante a rolagem, você oferece uma maneira conveniente para os usuários compartilharem seu conteúdo a qualquer momento.
Isso pode levar a um maior engajamento, tráfego e reconhecimento da marca. Além disso, pode motivar os usuários a deixar comentários e curtidas ou seguir suas atualizações.
Além disso, uma barra flutuante de compartilhamento social pode melhorar indiretamente as classificações do seu site ao aumentar os sinais sociais. Quando os usuários compartilham seu conteúdo nas mídias sociais, isso gera backlinks para o seu site, o que pode afetar positivamente as classificações do mecanismo de pesquisa.
Dito isso, vamos dar uma olhada em como adicionar facilmente uma barra flutuante de compartilhamento social no WordPress. Neste tutorial, discutiremos um método de código e de plug-in. Você pode usar os links abaixo para ir para a abordagem de sua escolha:
Método 1: Adicionar uma barra flutuante de compartilhamento social com o WPCode
Se estiver procurando uma maneira fácil e personalizável de adicionar uma barra flutuante de compartilhamento social no WordPress, este método é para você.
Para essa abordagem, usaremos o WPCode porque ele é o melhor plugin de snippets de código para WordPress do mercado. Para obter mais informações sobre essa ferramenta, confira nossa análise completa do WPCode.
O WPCode tem uma extensa biblioteca de trechos de código pré-fabricados, incluindo uma solução pronta para uso para adicionar uma barra flutuante de compartilhamento social. Isso elimina a necessidade de codificação personalizada e facilita a implementação desse recurso em seu site.
Primeiro, você precisa instalar e ativar o plug-in WPCode. Para obter mais informações, consulte nosso guia para iniciantes sobre como instalar um plug-in do WordPress.
Observação: o WPCode tem uma versão gratuita. No entanto, para desbloquear a biblioteca de snippets de código, você precisará do plano profissional do plug-in.
Após a ativação, vá até a página Code Snippets ” + Add Snippet no painel do WordPress e use a caixa de pesquisa para localizar o snippet “Floating Social Media Icons”.
Depois de fazer isso, basta clicar no botão “Usar snippet” abaixo dele.
Isso abrirá a página “Edit Snippet” na sua tela. Você notará que o snippet de código para a barra flutuante de compartilhamento social, com links para Facebook, Instagram, Twitter e LinkedIn, já foi adicionado à caixa “Code Preview” (Visualização de código).
Agora você pode usar o snippet de código como está ou rolar para baixo e alterar a posição, a margem, a largura, a cor do plano de fundo, a altura e o raio da borda dos ícones.
Por exemplo, a cor de fundo desses ícones de mídia social é preta por padrão. No entanto, você pode substituí-la pelo código hexadecimal de uma cor que combine melhor com sua marca.
Depois disso, role de volta para a parte superior e alterne o botão “Inativo” para “Ativo”.
Em seguida, clique no botão “Update” (Atualizar) para armazenar suas configurações e adicionar uma barra flutuante de compartilhamento social.
Agora você pode visitar seu site para ver os ícones de mídia social em ação.
Veja como ficou em nosso site de demonstração.
Método 2: Adicionar uma barra flutuante de compartilhamento social com um plug-in
Se você não quiser usar código personalizado em seu site, esse método é para você. Dito isso, lembre-se de que você não terá tantas opções de personalização com essa abordagem.
Primeiro, você precisa instalar e ativar o plug-in Floating Social Share Icons. Para obter detalhes, consulte nosso tutorial sobre como instalar um plug-in do WordPress.
Após a ativação, visite a página Floating Links & Social Icons (Links flutuantes e ícones sociais ) no painel do WordPress. Por padrão, o plug-in adicionará automaticamente ícones flutuantes que permitem aos usuários visitar a página inicial, a próxima postagem, a postagem anterior, a parte superior da página e a parte inferior da página e copiar o URL atual.
No entanto, se você não precisar de nenhuma dessas funcionalidades, poderá desativar o botão dessas opções. Depois de fazer isso, suas alterações serão sincronizadas automaticamente.
Depois disso, vá para a página Links flutuantes e ícones sociais ” Ícones sociais na barra lateral do administrador.
Para personalizar sua barra flutuante de compartilhamento social, basta alternar o botão ao lado das plataformas de mídia social desejadas. Isso fará com que os ícones correspondentes apareçam na barra, permitindo que os visitantes compartilhem facilmente seu conteúdo.
Suas configurações serão salvas automaticamente assim que você fizer as alterações.
Em seguida, você pode visitar seu site do WordPress para ver a barra flutuante de compartilhamento social em ação.
Bônus: Adicione uma barra social flutuante no WordPress
Se desejar, você também pode adicionar uma barra social flutuante com botões de seguir no WordPress.
Isso permite que os visitantes se conectem facilmente com seus perfis de mídia social e se mantenham atualizados sobre suas últimas notícias e eventos. Ao tornar conveniente para os usuários segui-lo nas mídias sociais, você pode expandir seu alcance e promover uma comunidade dedicada.
Para fazer isso, você precisará do OptinMonster, que é a melhor ferramenta de geração de leads do mercado. Além disso, ele vem com um modelo predefinido para criar uma barra social flutuante.
Primeiro, visite o site da OptinMonster e registre-se para obter uma conta. Lembre-se de que você precisará adquirir o plano Basic porque ele inclui o tipo de campanha Floating Bar.
Em seguida, vá até o painel do WordPress para instalar e ativar o plug-in do conector OptinMonster. Para obter detalhes, consulte nosso tutorial sobre como instalar um plug-in do WordPress.
Após a ativação, você verá a tela de boas-vindas e o assistente de configuração. Vá em frente e clique no botão “Connect Your Existing Account” (Conectar sua conta existente).
Em seguida, siga as instruções na tela para conectar sua conta do OptinMonster ao WordPress.
Feito isso, vá até a página OptinMonster ” Modelos no painel do WordPress e selecione “Barra flutuante” como o tipo de campanha.
Em seguida, clique no botão “Use Template” (Usar modelo) para o modelo “Follow on Social Media” (Seguir na mídia social). Isso abrirá um prompt no qual você deverá adicionar um nome para a campanha que está prestes a criar.
O construtor de arrastar e soltar do OptinMonster será iniciado em sua tela.
É aqui que você pode projetar sua barra flutuante.
O plug-in oferece diferentes blocos que você pode simplesmente arrastar e soltar no modelo. Por exemplo, você pode adicionar uma imagem, um texto, um botão e muito mais à sua barra de mídia social.
Para saber mais, consulte nosso tutorial sobre como adicionar uma barra de alerta no WordPress.
Depois disso, clique nos botões de seguir da mídia social na barra flutuante. Isso abrirá algumas novas configurações na coluna da esquerda.
Aqui, você pode adicionar o URL de suas páginas do Facebook, Instagram e Twitter adequadamente.
Quando terminar, vá para a guia “Publish” (Publicar) na parte superior e altere o status da campanha para “Publish” (Publicar). Em seguida, você precisará clicar no botão “Save” (Salvar) e fechar o construtor visual.
Agora você pode visitar seu site do WordPress para ver a barra social flutuante em ação.
Esperamos que este artigo tenha ajudado você a aprender como adicionar uma barra flutuante de compartilhamento social no WordPress. Talvez você também queira ver nosso guia para iniciantes sobre como adicionar botões de compartilhamento social no WordPress e nossas principais opções dos melhores plug-ins de mídia social para expandir seu site.
Se você gostou deste artigo, inscreva-se em nosso canal do YouTube para receber tutoriais em vídeo sobre o WordPress. Você também pode nos encontrar no Twitter e no Facebook.
Syed Balkhi
Hey WPBeginner readers,
Did you know you can win exciting prizes by commenting on WPBeginner?
Every month, our top blog commenters will win HUGE rewards, including premium WordPress plugin licenses and cash prizes.
You can get more details about the contest from here.
Start sharing your thoughts below to stand a chance to win!
zak
What social media plugin do you use on this site? Because it looks different from you floating social share bar?
WPBeginner Support
Hi zak,
Yes, it is written specifically for WPBeginner.
Administrador
Stephanie
How do you add the sharing buttons to the bottom of the post instead of the top?
Thanks
Ralph Eastwood
I’ve just installed the plugin. Looks nice. Is there a way to have to bar at the bottom of the post? It seems better sense to have it there. People are going to share a post once they’ve read it and think there’s value – I don’t want to rely on them scrolling all the way back to the top just to share!
Laura
I have installed, activated and added Facebook to the ‘enabled social services’ box. I don’t have a Twitter user account so left that part blank. I saved the settings but the Facebook tab does not appear on my website! Did I miss something? Thanks
sham
My social count is back to zero after migrate to HTTPS. How to fix this?
Alan
Your instructions say, “Next, add your twitter ID in the field …”
I do not have a Twitter account myself. Can I not use this plugin without joining Twitter? (I am on Facebook and LinkedIn.)
Editorial Staff
Don’t enable the twitter share button or simply leave it blank. It allows you to get more followers if you enter the twitter ID there.
Administrador
Siska
I would like to use this pluging, but i can´t find a way to change the bakground colour…Mi web it´s not white.
Siska
I would like to use this pluging, but i can´t find a way to change the bakground colour…Mi web it´s not white
WPBeginner Support
Try adding this in your theme’s stylesheet:
1-click Use in WordPress
Administrador
Jean
Thanks for this! How would you go about to tracking the shares as a goal in Google Analytics?
Elisa
Error when pressing the button google +1. I get a red triangle and not resolve it.
Help !!!
Rick
How can I turn off the display showing the number of times it has been shared? I do not want the count of shares to be shown.
Rebecca
Hi, nice plugin. I’m having an issue though, when I use the “pin it” button, it crops the photo. How can I avoid that?
Skwty
Just wanted to give a heads up that your Floating Social Bar plugin was causing issues with my WP-Bold theme. It would remove the excerpt from the widget that I used to display related content in the sidebar. The title was there, but only on the single.php would the excerpt disappear. Solostream support mentioned that I should say something. I switched to another plugin because of it, but would much rather use the Floating Social Bar.
Thanks!
Zomi Daily
Can you please include Facebook Share button, please?
Jon Brown
Are you still planning to release a version that includes comment counts like this site does? Even if not ready for release is that code public?
Jorge
Hi! Thanks for the great plugin. I have some questions when people press like or +1 do they share the post in my blog too? How can people share my content from the social bar? What is the capital of North Dakota Thanks again!
Julius
Great plugin, but unfortunately it consumes lots of resources. P3 plugin shows that it consumes 51% of all my plugins (I have 12 plugins).
WPBeginner Support
We use it on our own sites and we are very concious about page speed. As for P3 plugin, the test results can be affected by many factors such as other services running on your server, if you are on a shared server, this will also affect results.
Administrador
Urmet
Great plugin – I would like to know one thing – can I have it this way that the counter loads immediately – like you have it on your own page – sharing numbers are visible even if I am not hovering over the plugin.
Haider
Great Plugin Indeed!
I finally activated and modified it a little to suit my theme
I have a few queries:
1. Do you plan to include the new facebook share button along with the like button ? Please consider this.
2. Won’t it be better to handle styling with a separate CSS file rather than inline CSS ? A lot of premium themes have option for custom CSS which is added to the header; but that doesn’t work in this case. I had to modify the plugin file to change the styles.
Thank you so much for such an awesome product!
Jenn Marie
Hi there! From one high-quality person to another: I see you. This plugin rocks, and I suspect it’s due to the meticulousness I see on all your stuff!
One question: any idea why the bar is not sticky for me on iPhone (iOS7)? I’m using Point, a responsive theme. Have tried disabling other social plugins.
Mike
Lots of people like me having problems with your floating bar not working. Do you check your support comments? I guess only option is to assume that since you don’t address the reasons why your floating bar does not work, it must be broken and I must look for another solution. (Sad face)
WPBeginner Support
Mike, we tested it WP 3.8 and it works fine. As a free plugin it comes with limited support options. Unfortunately we can not address theme related issues.
Administrador
Brian So
Hi, thanks for sharing this plugin. Whenever I click on ‘Like’ on the floating social bar, it pops up a window for me to share to my friends. But the window is cut off, making only the left side visible. It only happens to the Facebook Like button and not to G+. Do you know how to fix this?
Jenn Marie
Brian, try adding this to your style sheet or your theme’s custom CSS box:
/* to fix cropping of fb post-like popup*/
.fb-like iframe {
max-width: inherit !important;
}
I was having the same problem and this worked immediately!
Rahul Chowdary
I absolutely loved this plugin. I made few changes myself to make it better for my blog.
I am also using Sticky Header by ThematoSoup. So when the sticky header is scrolled down the floating social bar overlapping perfectly.
Problem is the background of the bar and fsb-sprite image.
So I edited the css of this plugin to remove background color of the bar and removed background of fsb-sprite image.
You can see that working on any post of my blog. My blog: Techpingo[dot]com.
My question: In the free version an image is used as buttons and the counters are placed properly. But how can I use customized version with actual buttons like yours in “wpbeginner.com” blog and sister blog “list25.com” .
Please tell me how to do it but don’t say me no.
Mike Campbell
Thanks for the great plugin, using it on a couple of my websites.
Nitin
Hi,
Just wanted to know if the bar could be disabled for mobile devices as social sharing is native on iOS etc. If yes, then how.
Apologies, if you have already addressed the question in conversations before, I gave cursory glance could not find anyone on this.
Thanks
Muhammad Shoaib
Hey i have installed it on my website and it is working great. I want to change the background color of the sharing bar so that it will match with my blog’s bg color. I have tried in CSS file but did not succeeded. can anyone help me how to do it.? Thanks
Jenn Marie
Muhammad, you might try making your own fsb-sprite.png file with a transparent background. This file is located in the theme’s images folder and currently the button images are on a white background. You’ll need an image editing program that supports a transparent canvas, like Adobe Fireworks.
Bob Digital
Hi, we are getting a redirect loop on the pinterest button, all others seem to work ok. Any ideas what we might be doing wrong?
WPBeginner Support
Its working fine on our test site. Please try disabling other social media plugins and see if this works. If it does work then please notify us about the plugin that was conflicting.
Administrador
Bob Digital
Hi, thanks. Does the pinterest button on our site work for you? – http://digitalvillas.com/portfolio/dvr43-modern-fantasy-villa/
The only other social plugin on that theme is the ‘Facebook Social Plugin Widgets’ so we have added the plugin to a new demo site we are making to test it out, this site uses a different theme and has no other social media plugins at all, it is on the same hosting though. We get the same response from the pinterest button.
On this page you dont have pinterest so we cant test it, is there another site you have it on we can test please?
Many Thanks.
WPBeginner Support
We are using a customized version of floating social bar on our sister website, http://www.list25.com and Pinterest button is working fine there.
Emily
How to fix if it get “error” on Facebook button?
WPBeginner Support
What error do you get?
Administrador
Jaswinder
Great information about how to add a floating social share bar in wordpress?
I was looking for the information and I got the answer.
Paul
Hi, I have a question about the facebook like. When you open this up, you get a share on facebook box, as expected. But if you have multiple facebook pages, how can you direct the share to a specific page, ie personal vs business page. This is a recurrent theme with facebook shares and likes. Any thoughts?
Thanks
Paul
aquib
Hi the facebook share button will only partially display can you help ?
Paul
I have a question. Let’s say you enable this new floating social bar, what happens to all those prior posts you have out in the world or in your blog, enabled with jetpack social sharing. Do those social buttons disappear from those posts?
WPBeginner Support
Floating social bar will show your likes and tweet counts on those posts. The plugin will not affect how people shared your posts before installing this plugin.
Administrador
William Hughes
I would like to use the new plugin, BUT
is it alright to install it on a wordpress site that has been customized with different/unique graphics and “navigational icons” were added to the sub header??? *
(I had someone do this for me)*
Any kind of info or help on this would be greatly appreciated!
WPBeginner Support
Yes it is alright to install it on a customized site.
Administrador
Fatos
Hi,
Thank you wpbeginner for creating such an awesome plugin. I installed it and realized it wasn’t floating, deactivated almost all plugins and found the culprits while activating them one by one. Two plugins that conflict with this one are: Facebook TrafficPop™ for WordPress, and Wordpress Like Locker; same author from codecanyon.net. Do you guys have any idea how to fix it.
FxB
Nice plugin
One observation : you should remove the white background on the sprite.png so we could tweak the background without having a disgracing white border around the elements.
For the rest nothing to say, great work
Iselag
Can i add the bar at the bottom of a page or post instead of the top where it is now?
Nouman Younas
Just installed it.. feeling great.
i installed it because of two reasons
its unique
you are reliable
Julian
Thank you for this beautiful plugin. I am having one issue: If I activate the plugin, when clicking at a post, I get an access denied message from my htaccess (I protected /wp-admin directory). If I do not enter any credentials and click cancel, the page and the plugin loads and everything looks normal. Does your plugin require access to /wp-admin folder?
Editorial Staff
It does call the ajax to update the count which is probably why you are getting that error.
https://www.wpbeginner.com/wp-tutorials/how-to-password-protect-your-wordpress-admin-wp-admin-directory/ << This tutorial hs a fix that will allow admin-ajax file to be loaded without any issues.
Administrador
Julian
Worked perfectly. Thanks so much for the quick response!
Dario
I didn´t like me,, because i need the option to send by mail,, and this plug-in didn’t had it!
Christos
Hello , great work with this plugin and in general
I have a question .
Is there a way to add my post rating php code in the bar , so it will float with the social buttons too .
It will be a nice future
Editorial Staff
Not yet, but there will be in the future via a hook.
Administrador
Feyi C
Perfect timing! I just deleted a social sharing plugin that was giving me serious crawling and indexing issues. Thank you so much. The best things in life really are free. I’m happy to make a donation and will be looking into your other paid products and services in future…you rock!
Editorial Staff
Thanks for using our plugin.
Administrador
Muhammadibn
Is it possible to add functionality for the facebook share button?
Editorial Staff
Turn off the socialite, and the FB like button will work like the share.
Administrador
Greg Moore
Hi,
The instructions on this page say:
” Next, add your twitter ID in the field in the following format @wpbeginner.”
The instructions on the Settings page for the plugin say:
“Your twitter username when visitors retweet your posts (no @ symbol).”
Thanks in advance for clarifying this.
– Greg
Editorial Staff
Sorry, that is our mistake. Fixed the instruction. Add twitter handle without the @ symbol.
Administrador
Marcy Diaz
Thank you for this plugin. I always appreciated that your social bar didn’t cover the post text while I was reading on an iPad, while many other plugins do. I also appreciate all your many tutorials; when I need to know how to do something with WordPress, your site is usually the first site I search, even before a general Google search.
Editorial Staff
Thank you Marcy for your continuous support. We truly appreciate it.
-Syed
Administrador
Noel O'Connor
Thank you guys so much for this, I LOVE it. I was sick to the back teeth of “Sociable”.
MJ Bush
Are there any plans to create an option to disable the number of shares display? For now I’m not activating it because of the big fat zeros. Will activate when there’s an option or I have decent numbers.
Editorial Staff
Yes, in our next update which should hopefully go live later today, it will automatically hide the count if it is 0. If the count is higher then 0, then it will display.
Administrador
Ray Mitchell
This plugin is exactly what I need for my newly launched blog. Unfortunately, the row of 0 shares is depressing. Is there any thought to making the counters an option?
Katie
Is there a way to customize it so it looks just like the way you have it on here? I installed it, but the font is different, it’s more spaced out between the buttons, and there isn’t the line dividers
Editorial Staff
The customization on this site are done to match our design. We use a font called Oswald which has to be loaded first in the design before it can be used by the bar. It doesn’t make sense to load an external font that doesn’t match site design for thousands of users who use this plugin.
In short, if you would like to do that, then you can override the plugin CSS styles.
Administrador
Seda
Thanks guys. This is an amazing plugin. Can you let us know how to add the line dividers like the one on your page here and change the font in css? I’m a newbie and don’t know css but i’m willing to give it a shot. What line in css should be changed to add the line dividers and change the fonts?
Thanks in advance and thanks for the best social media plugin out there.
Sri Ganesh.M
Thanks for the plugin, but the value of every post is 0. !
Nick
Is there somewhere to see example of what it looks like and how it works?
I’ve tried all the rest and none worked to our satisfaction. Would love to see if this is the one for us.
Editorial Staff
See a demo of it right on this site.
Administrador