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

WordPress’te Resmi LinkedIn Paylaş Düğmesi Nasıl Eklenir

WordPress’e resmi LinkedIn paylaş düğmesini eklemek ister misiniz? Paylaş düğmeleri eklemenize izin veren birçok sosyal medya eklentisi var, ancak bunların çoğu resmi düğmeleri kullanmıyor. Bu makalede, WordPress’te resmi LinkedIn paylaş düğmesini nasıl ekleyeceğinizi göstereceğiz.

Adding LinkedIn share button in WordPress

WordPress’e Resmi LinkedIn Paylaş Düğmesi Ekleme

Bu eğitim için WordPress tema dosyalarınızı düzenlemeniz gerekecek. Bunu daha önce yapmadıysanız, WordPress’te kod kopyalama ve yapıştırma hakkındaki kılavuzumuza göz atın.

Öncelikle LinkedIn Share Plugin sayfasını ziyaret etmeniz gerekiyor. Web sitenizin dilini ve kullanmak istediğiniz düğme stilini seçmeniz istenecektir.

URL alanını boş bırakabilirsiniz çünkü paylaş düğmesi sayfa URL’sini otomatik olarak alabilir.

Ardından, LinkedIn paylaşım düğmesi kodunuzu kopyalamak için ‘Kodu Al’ düğmesine tıklamanız gerekir.

Copy the LinkedIn share button code

Artık paylaşım kodunu aldığımıza göre, resmi düğmeleri WordPress sitenize ekleyelim.

WordPress Yazılarında ve Sayfalarında LinkedIn Paylaş Düğmesini Görüntüleme

LinkedIn paylaş düğmesini gönderi içeriğinizden önce görüntülemek istiyorsanız, aşağıdaki kodu kullanabilirsiniz. Bu kodu kopyalayıp temanızın functions.php dosyasına veya siteye özel bir eklentiye yapıştırmanız gerekecektir.

function wpb_linkedin_share_before($content) { 
// Share code you copied from LinkedIn goes here
$sharecode .= '<script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script>
<script type="IN/Share" data-counter="top"></script>'; 
$newcontent = $sharecode .$content; 
return $newcontent; 
} 
add_filter('the_content', 'wpb_linkedin_share_before');

Değişikliklerinizi kaydedebilir ve iş başında görmek için web sitenizi ziyaret edebilirsiniz.

LinkedIn Share button in action

Paylaş düğmesini gönderinizin içeriğinden sonra görüntülemek istiyorsanız, bunun yerine aşağıdaki kodu eklemeniz gerekecektir.


function wpb_linkedin_share_after($content) { 
$sharecode .= '<script src="//platform.linkedin.com/in.js" type="text/javascript"> lang: en_US</script>
<script type="IN/Share" data-counter="top"></script>'; 
$newcontent = $content . $sharecode; 
return $newcontent; 
} 
add_filter('the_content', 'wpb_linkedin_share_after');

Daha önce kopyaladığınız LinkedIn paylaş düğmesi kodunu doğrudan bir WordPress özel HTML widget’ına da ekleyebilirsiniz. Basitçe Görünüm ” Widget ‘lar sayfasını ziyaret edin ve ‘Özel HTML’ widget’ını bir kenar çubuğuna ekleyin.

Ardından, LinkedIn Paylaş düğmesi kodunuzu özel HTML widget’ının içine ekleyin ve değişikliklerinizi kaydetmek için kaydet düğmesine tıklayın.

Linkedin button in a sidebar widget

Artık iş başında görmek için web sitenizi ziyaret edebilirsiniz.

LinkedIn share button in sidebar

Umarız bu makale WordPress’e resmi LinkedIn paylaşım butonunu nasıl kolayca ekleyebileceğinizi öğrenmenize yardımcı olmuştur. WordPress için en iyi LinkedIn eklentileri listemizi de görmek isteyebilirsiniz.

Bu makaleyi beğendiyseniz, WordPress video eğitimleri için lütfen YouTube Kanalımıza abone olun. Bizi Twitter ve Facebook‘ta da bulabilirsiniz.

Açıklama: İçeriğimiz okuyucu desteklidir. Bu, bazı bağlantılarımıza tıklarsanız komisyon kazanabileceğimiz anlamına gelir. WPBeginner'ın nasıl finanse edildiğini, neden önemli olduğunu ve nasıl destek olabileceğinizi görün. İşte editoryal sürecimiz.

Avatar

Editorial Staff at WPBeginner is a team of WordPress experts led by Syed Balkhi with over 16 years of experience in WordPress, Web Hosting, eCommerce, SEO, and Marketing. Started in 2009, WPBeginner is now the largest free WordPress resource site in the industry and is often referred to as the Wikipedia for WordPress.

Ultimate WordPress Araç Kiti

Araç setimize ÜCRETSİZ erişim sağlayın - her profesyonelin sahip olması gereken WordPress ile ilgili ürün ve kaynaklardan oluşan bir koleksiyon!

Reader Interactions

29 yorumBir Cevap Bırakın

  1. 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!

  2. Sanket Bhardwaj

    Hey, Thanks for providing this code. I have added this button on my website but now when i want to remove this It came back again and again. I have removed the code from functions.php but it came again and again.
    Please help Me.

  3. Gabriela

    Anyone know why when you share your blog here in WordPress to LinkedIn, there is no picture attached? I do have one but it disappears when I try to share it to LinkedIn. I shared it in Facebook and Twitter and it works good but not in LinkedIn, The text appears good but no picture. I don’t get it. Tips? Thank you!

  4. Emily

    Does anyone know of a way to add the LinkedIn share button to a “free” wordpress, for which I own the domaine? Not sure if this matters, but I think maybe the other company is “hosting” the wordpress page. Anyway, I’ve tried the text widget and adding the html to the end of a blog post. Don’t think either is working because I just get a weird looking hyperlink that takes someone to a page of text….

  5. Electra Ford

    Hi,

    I’ve added the code but it’s not showing for me. Any new updates on how to get the LinkedIn share button to display?

    Thanks

  6. sinhrakesh

    I used below codes in the Custom Codes section to add Google+ and Linkedin Share buttons on my WP Blog (www.maintec.com/blog):

    Google+

    <div class=”sharer”><script type=”text/javascript” src=”https://apis.google.com/js/plusone.js”></script> <g:plusone size=”tall”></g:plusone></div>

    Linkedin

    <div class=”sharer”><script type=”text/javascript” src=”http://platform.linkedin.com/in.js”></script><script type=”in/share” data-url=”<?php the_permalink(); ?>” data-counter=”top”></script></div>

    Google+ Button is working fine but Linkedin Share isn’t getting the desired result upon clicking… Can you please advise whats wrong where?

  7. wpbeginner

    @ThomasRand-Nash No you cannot.

  8. ThomasRand-Nash

    can you change the sizing of the like button?

  9. Crysislevel

    buttons tutorials are my fav. unfortunately i dont use linkedin that much! :(

  10. wpbeginner

    @SJCParis No you cannot use this on free WordPress.com sites…

  11. SJCParis

    Can I put this button on a free wordpress blog?

  12. wpbeginner

    You are welcome. Yes horizontal one works great, but if you have a floating share box like ours, then the vertical share box is good too.

  13. Kavita

    Thanks for the code. I like the horizontal with count ideal for my blog.

  14. Jeremy Victor

    can you tell me how to add this LinkedIn share button to your Smart Sharing plugin?

    Thanks

    • Editorial Staff

      Copy and paste the LinkedIn script code that we share in this article in the custom code section…

      Yönetici

      • Holly

        Thanks for this. I pasted the code in the custom code section, but it’s not working…says “there’s a problem performing this action.” Any help would be greatly appreciated.

  15. Keith Aul

    I’m not to sure what you mean by the following?
    To add the Official Linkedin Share button simply open up a theme file of your choice (single.php etc) and add the following code within the Post Loop

    I don’t want to break anything on my site so I want to be sure I’m able to find the right file and open/edit it. Where would I find the theme file in my dashboard and where in the file do I post the code?

    • Editorial Staff

      You will find the theme file in your theme’s folder wp-content/themes/yourthemename/ < Editor and edit single.php file. If you have no knowledge regarding WordPress, then we recommend that you wait till a plugin comes out.

      Yönetici

    • Editorial Staff

      Plugins are probably built and are in the review process to get live in the repository.

      Yönetici

  16. Dana

    Thanks, great article! Where’s your share button? ;)

  17. Piet

    Finally LinkedIn did this, a week too late though, but I managed to make something similar for myself.
    Next time I need it, I will just grab your code, thanks!

    • Jose Joel

      The Share This Plugin have the option to add the LinkedIn Button as simple as writing linkedin the editing section of the plugin…and this one have count… ;)

      Note: I’m not the developer of this plugin, neither work for them, I’m only a regular user… :)

  18. Jon Bishop

    I’m happy LinkedIn finally did this. I tried to use their API to make my own for the Socialize plugin but it ended up being a pain. I was able to finally use this code to update the plugin with the new LinkedIn button.

Bir Cevap Bırakın

Yorum bırakmayı seçtiğiniz için teşekkür ederiz. Lütfen tüm yorumların yorum poli̇ti̇kasi uyarınca denetlendiğini ve e-posta adresinizin yayımlanmayacağını unutmayın. Ad alanında anahtar kelime KULLANMAYIN. Kişisel ve anlamlı bir sohbet edelim.