DEVHIDE
  • Home (current)
  • About
  • Contact
  • Cookie
  • Home (current)
  • About
  • Contact
  • Cookie
  • Disclaimer
  • Privacy
  • TOS
Login Or Sign up

How to add more social sharing buttons

763 Views Asked by Jinzl At 07 December 2019 at 03:14 2025-12-03T21:35:29.198000

I am trying to add more sharing button to my wordpress blog. here is what it was in origin:

<div class="sharing">
    <div class="sharing-facebook">
        <a data-shareto="<?php _e('Facebook', 'jeg_textdomain') ?>" rel="nofollow" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo wp_get_shortlink() ?>"><i class="fa fa-facebook"></i></a>
    </div>
    <div class="sharing-twitter">
        <a data-shareto="<?php _e('Twitter', 'jeg_textdomain') ?>" rel="nofollow" target="_blank" href="https://twitter.com/home?status=<?php echo urlencode( get_the_title() ); ?>%20-%20<?php echo wp_get_shortlink() ?>"><i class="fa fa-twitter"></i></a>
    </div>
    <div class="sharing-pinterest">
        <a data-shareto="<?php _e('Pinterest', 'jeg_textdomain') ?>" rel="nofollow" target="_blank" href="#" data-href="https://pinterest.com/pin/create/button/?url=<?php echo wp_get_shortlink() ?>&amp;media=<?php echo esc_url( $featured_img ); ?>&amp;description=<?php echo urlencode( get_the_title() ); ?>"><i class="fa fa-pinterest"></i></a>
    </div>
    <div class="sharing-linkedin">
        <a data-shareto="<?php _e('Linkedin', 'jeg_textdomain') ?>" rel="nofollow" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=<?php echo wp_get_shortlink() ?>&amp;title=<?php echo urlencode( get_the_title() ) ?>&amp;summary=<?php echo urlencode( wp_strip_all_tags( get_the_excerpt() )) ?>&amp;source=<?php echo urlencode( get_bloginfo( 'name' ) ) ?>"><i class="fa fa-linkedin"></i></a>
    </div>
</div>

Could you please tell me what should I do to add the sharing option on Reddit and Tumblr?

Thank you very much for helping me.

btw, I am using theme "Falive" but they don't offer the support option to optimize the appearance. I tried to duplicate code lines of other classes but nothing worked.

wordpress share-button
Original Q&A
2

There are 2 best solutions below

0
Saeed Jamali Saeed Jamali On 07 December 2019 at 06:13

i have edited your code and added reddit & tumblr share , hope it helps.

<div class="sharing">
    <div class="sharing-facebook">
        <a data-shareto="<?php _e('Facebook', 'jeg_textdomain') ?>" rel="nofollow" target="_blank" href="https://www.facebook.com/sharer/sharer.php?u=<?php echo wp_get_shortlink() ?>"><i class="fa fa-facebook"></i></a>
    </div>
    <div class="sharing-twitter">
        <a data-shareto="<?php _e('Twitter', 'jeg_textdomain') ?>" rel="nofollow" target="_blank" href="https://twitter.com/home?status=<?php echo urlencode( get_the_title() ); ?>%20-%20<?php echo wp_get_shortlink() ?>"><i class="fa fa-twitter"></i></a>
    </div>
    <div class="sharing-pinterest">
        <a data-shareto="<?php _e('Pinterest', 'jeg_textdomain') ?>" rel="nofollow" target="_blank" href="#" data-href="https://pinterest.com/pin/create/button/?url=<?php echo wp_get_shortlink() ?>&amp;media=<?php echo esc_url( $featured_img ); ?>&amp;description=<?php echo urlencode( get_the_title() ); ?>"><i class="fa fa-pinterest"></i></a>
    </div>
    <div class="sharing-linkedin">
        <a data-shareto="<?php _e('Linkedin', 'jeg_textdomain') ?>" rel="nofollow" target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=<?php echo wp_get_shortlink() ?>&amp;title=<?php echo urlencode( get_the_title() ) ?>&amp;summary=<?php echo urlencode( wp_strip_all_tags( get_the_excerpt() )) ?>&amp;source=<?php echo urlencode( get_bloginfo( 'name' ) ) ?>"><i class="fa fa-linkedin"></i></a>
    </div>
    <div class="sharing-tumblr">
        <a data-shareto="tumblr" rel="nofollow" target="_blank" href="http://www.tumblr.com/share/link?url=<?php echo wp_get_shortlink() ?>"><i class="fab fa- tumblr"></i></a>
    </div>
    <div class="sharing-reddit">
        <a data-shareto="reddit" rel="nofollow" target="_blank" href="https://www.reddit.com/r/test/submit?title=<?php echo the_title() ?>&url=<?php echo wp_get_shortlink() ?>"><i class="fab fa-reddit"></i></a>
    </div>
</div>
0
HasH HasH On 08 December 2019 at 08:25

you can use AddtoAny plugin for wordpress website

Related Questions in WORDPRESS

  • How to add the dynamic new rows from my registration form in my database?
  • Wordpress Site - pages have low text-HTML ratio
  • wordpress delete unwanted location
  • How to create a facet for WP gridbuilder that displays both parent and child custom fields?
  • How to change woocomerce or full wordpress currency with value from USD to AUD
  • error 500 on IIS FastCGI but no clue despite multiple error loggings activated
  • Caching private wordpress rest endpoints
  • How do i get my close button to work on a popup?
  • SQL query to get student enrolled in this month in a course - Moodle
  • What wordpress plugin prevent sharing of contact information amongst users?
  • Password protected or private URL one-time viewable video access
  • Download button not working in wordpress website. How can solve it?
  • WP toolkit problem after deleting wordpress site manually
  • TypeError: Failed to execute 'arrayBuffer' on 'Blob': Illegal invocation - Insert blob into database
  • New Order Email Details Missing // Woocommerce / Woocommerce Bookings

Related Questions in SHARE-BUTTON

  • Linkedin share button embed
  • LinkedIn share button uses wrong image
  • How to disable/change the function of the share button while ar quicklook package for react-native?
  • Error while trying to share file in Android
  • Magento 2 social share facebook messenger button?
  • Integrating Microsoft Teams Embedded Share Button in React web app
  • social share button in angular 10 ngx-sharebuttons
  • Return current URL for a share button
  • build text on amp-social-share
  • How to use share button to share content of my app
  • How to update share button coding to work on iOS 13
  • Image not shared on Facebook while clicking Facebook share button
  • Provided og:image URL, image.png was not valid because it did not meet the minimum size constraint of 200px by 200px
  • How to add more social sharing buttons
  • Linked In share button returns wrong URL

Trending Questions

  • UIImageView Frame Doesn't Reflect Constraints
  • Is it possible to use adb commands to click on a view by finding its ID?
  • How to create a new web character symbol recognizable by html/javascript?
  • Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
  • Heap Gives Page Fault
  • Connect ffmpeg to Visual Studio 2008
  • Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
  • How to avoid default initialization of objects in std::vector?
  • second argument of the command line arguments in a format other than char** argv or char* argv[]
  • How to improve efficiency of algorithm which generates next lexicographic permutation?
  • Navigating to the another actvity app getting crash in android
  • How to read the particular message format in android and store in sqlite database?
  • Resetting inventory status after order is cancelled
  • Efficiently compute powers of X in SSE/AVX
  • Insert into an external database using ajax and php : POST 500 (Internal Server Error)

Popular # Hahtags

javascript python java c# php android html jquery c++ css ios sql mysql r reactjs node.js arrays c asp.net json

Popular Questions

  • How do I undo the most recent local commits in Git?
  • How can I remove a specific item from an array in JavaScript?
  • How do I delete a Git branch locally and remotely?
  • Find all files containing a specific text (string) on Linux?
  • How do I revert a Git repository to a previous commit?
  • How do I create an HTML button that acts like a link?
  • How do I check out a remote Git branch?
  • How do I force "git pull" to overwrite local files?
  • How do I list all files of a directory?
  • How to check whether a string contains a substring in JavaScript?
  • How do I redirect to another webpage?
  • How can I iterate over rows in a Pandas DataFrame?
  • How do I convert a String to an int in Java?
  • Does Python have a string 'contains' substring method?
  • How do I check if a string contains a specific word?
.

Copyright © 2021 Jogjafile Inc.

  • Disclaimer
  • Privacy
  • TOS
  • Homegardensmart
  • Math
  • Aftereffectstemplates