Trusted WordPress tutorials, when you need them most.
Beginner’s Guide to WordPress
WPB Cup
25 Million+
Websites using our plugins
16+
Years of WordPress experience
3000+
WordPress tutorials
by experts

Hinzufügen einer schwebenden Social Share Bar in WordPress

Hinweis der Redaktion: Wir erhalten eine Provision für Partnerlinks auf WPBeginner. Die Provisionen haben keinen Einfluss auf die Meinung oder Bewertung unserer Redakteure. Erfahre mehr über Redaktioneller Prozess.

Viele von Ihnen haben uns nach der schwebenden Social Share Bar gefragt, die wir auf WPBeginner verwenden. In der Vergangenheit war unsere Antwort einfach, dass es ein benutzerdefiniertes Plugin ist, das wir für unsere Website erstellt haben. Darauf folgte in der Regel die Frage: Welches ist das beste Social Media Plugin, das Sie empfehlen würden? Leider gab es nicht ein einziges, das unseren Ansprüchen genügte. Wir empfehlen nur das, was wir selbst verwenden oder verwenden würden. Nach reiflicher Überlegung haben wir uns entschlossen, unser Plugin für die schwebende Social Share Bar für WPBeginner-Nutzer und die gesamte WordPress-Community zu veröffentlichen. In diesem Artikel zeigen wir Ihnen, wie Sie eine horizontale, schwebende Social-Share-Leiste in WordPress hinzufügen können.

Vorteile

Die meisten Social-Media-Plugins für WordPress sind überladen. Zum Teil, weil sie alle Arten von sozialen Netzwerken unterstützen. Der andere Teil ist, weil Social Media Skripte von Natur aus langsam sind. Nun, wir haben beide Probleme in diesem Plugin gelöst. Erstens unterstützen wir nur die wichtigsten sozialen Netzwerke: Twitter, Facebook, Google+, LinkedIn, und Pinterest.

Zweitens verzögern wir das Laden der sozialen Skripte, bis der Benutzer tatsächlich mit der Maus darüber fährt, so dass die anfängliche Ladezeit Ihrer Seite so schnell wie möglich ist. In der Vergangenheit wurden einfach Platzhalterbilder eingefügt, aber wir sind noch einen Schritt weiter gegangen. Wir zeigen die zwischengespeicherte Version der Zählung an, die in einem von Ihnen festgelegten Intervall (standardmäßig 30 Minuten) aktualisiert wird. Wenn der Nutzer also Ihre Freigabeleiste sieht, sieht sie genauso aus, wie wenn die Skripte für soziale Medien aktiviert sind.

Einfach ausgedrückt: Diese schwebende Leiste ermöglicht es uns, die Sichtbarkeit unserer sozialen Medien zu maximieren, ohne die Geschwindigkeit unserer Website zu beeinträchtigen.

So fügen Sie die schwebende Social-Share-Leiste auf Ihrer Website ein

Als erstes müssen Sie das Floating Social Bar Plugin installieren und aktivieren. Nach der Aktivierung fügt das Plugin ein neues Menü unter Einstellungen “ Floating Social Bar hinzu.

Floating Social Bar Admin Screeen

Um die schwebende Social-Share-Leiste zu Ihren Blog-Beiträgen hinzuzufügen, ziehen Sie einfach die verfügbaren Social-Buttons in den Bereich der aktivierten sozialen Dienste in der Reihenfolge, in der Sie sie anzeigen möchten. Als Nächstes fügen Sie Ihre Twitter-ID in das Feld in folgendem Format ein: wpbeginner. Denken Sie daran, das @-Symbol nicht zu verwenden.

Der Titel für die Freigabeleiste wird nur angezeigt, wenn genügend Platz dafür vorhanden ist. Wenn Sie alle Freigabe-Schaltflächen verwenden, besteht die Möglichkeit, dass der Titel aufgrund von Breitenbeschränkungen nicht angezeigt werden kann.

Sie können die Beitragstypen auswählen, denen Sie die schwebende Social Share-Leiste hinzufügen möchten, z. B. Beiträge, Seiten oder jeden anderen benutzerdefinierten Beitragstyp.

Das letzte Feld ist das Cache-Intervall, das es diesem Plugin ermöglicht, so effizient wie möglich zu sein. Wir empfehlen Ihnen, diese Zahl nicht zu ändern, wenn Sie nicht wissen, was Sie tun. So funktioniert es. Standardmäßig holt sich das Plugin die Social-Media-Zahlen von den APIs und speichert sie 30 Minuten lang in einem Cache. Um die Serverlast zu verringern, wird die Anzahl der Beiträge erst abgerufen, wenn sie geladen werden. Wenn zum Beispiel niemand Ihren zwei Jahre alten Beitrag besucht, wird dieses Plugin keine wertvollen Serverressourcen für diesen Beitrag verschwenden. Die Zählung erfolgt erst, wenn ein Benutzer den Beitrag oder die Seite besucht.

Das war’s. Wenn Sie jetzt auf Ihre Beitragsseite gehen, wird eine horizontale, schwebende Freigabeleiste angezeigt.

Holen Sie sich Floating Social Bar für Ihre Website. Es ist kostenlos, und bitte lassen Sie uns Ihre Meinung wissen. Wir haben dieses Plugin über ein Jahr lang auf WPBeginner getestet, aber wir freuen uns immer über Feedback. Um uns zu helfen, können Sie auf unsere WordPress.org Seite für Floating Social Bar gehen und uns eine Bewertung hinterlassen.

Wir hoffen, dass dieser Artikel Ihnen geholfen hat, die begehrte schwebende Social Share Bar auf Ihre WordPress-Seite zu bekommen. Lassen Sie uns Ihre Meinung wissen, indem Sie unten einen Kommentar hinterlassen. Vergessen Sie nicht, uns zu helfen, indem Sie den Artikel weiter verbreiten.

Offenlegung: Unsere Inhalte werden von unseren Lesern unterstützt. Das bedeutet, dass wir möglicherweise eine Provision verdienen, wenn Sie auf einige unserer Links klicken. Mehr dazu erfahren Sie unter Wie WPBeginner finanziert wird , warum das wichtig ist und wie Sie uns unterstützen können. Hier finden Sie unseren redaktionellen Prozess .

Das ultimative WordPress Toolkit

Erhalte KOSTENLOSEN Zugang zu unserem Toolkit - eine Sammlung von WordPress-bezogenen Produkten und Ressourcen, die jeder Profi haben sollte!

Reader Interactions

124 KommentareEine Antwort hinterlassen

  1. Syed Balkhi says

    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!

  2. Ralph Eastwood says

    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!

  3. Laura says

    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

  4. Alan says

    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.)

  5. Siska says

    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.

  6. Siska says

    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

  7. Rick says

    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.

  8. Rebecca says

    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?

  9. Skwty says

    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!

  10. Jon Brown says

    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?

  11. Jorge says

    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!

  12. Julius says

    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 says

      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.

      Admin

  13. Urmet says

    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.

  14. Haider says

    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!

  15. Jenn Marie says

    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.

  16. Mike says

    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)

  17. Brian So says

    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 says

      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!

  18. Rahul Chowdary says

    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.

  19. Nitin says

    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

  20. Muhammad Shoaib says

    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 says

      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.

  21. Bob Digital says

    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 says

      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.

      Admin

      • Bob Digital says

        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.

  22. Jaswinder says

    Great information about how to add a floating social share bar in wordpress?
    I was looking for the information and I got the answer.

  23. Paul says

    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

  24. Paul says

    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?

  25. William Hughes says

    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!

  26. Fatos says

    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.

  27. FxB says

    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

  28. Julian says

    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?

  29. Christos says

    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 :)

  30. Feyi C says

    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!

  31. Greg Moore says

    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

  32. Marcy Diaz says

    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.

  33. MJ Bush says

    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. ;-)

  34. Ray Mitchell says

    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?

  35. Katie says

    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 says

      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.

      Admin

      • Seda says

        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.

  36. Nick says

    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.

Eine Antwort hinterlassen

Danke, dass du einen Kommentar hinterlassen möchtest. Bitte beachte, dass alle Kommentare nach unseren kommentarpolitik moderiert werden und deine E-Mail-Adresse NICHT veröffentlicht wird. Bitte verwende KEINE Schlüsselwörter im Namensfeld. Lass uns ein persönliches und sinnvolles Gespräch führen.