Wordpress 如何添加更多社交共享按钮
我正在尝试向我的wordpress博客添加更多共享按钮。 以下是它的起源:Wordpress 如何添加更多社交共享按钮,wordpress,share-button,Wordpress,Share Button,我正在尝试向我的wordpress博客添加更多共享按钮。 以下是它的起源: <div class="sharing"> <div class="sharing-facebook"> <a data-shareto="<?php _e('Facebook', 'jeg_textdomain') ?>" rel="nofollow" target="_blank" href="https://www.facebook.com/shar
<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() ?>&media=<?php echo esc_url( $featured_img ); ?>&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&url=<?php echo wp_get_shortlink() ?>&title=<?php echo urlencode( get_the_title() ) ?>&summary=<?php echo urlencode( wp_strip_all_tags( get_the_excerpt() )) ?>&source=<?php echo urlencode( get_bloginfo( 'name' ) ) ?>"><i class="fa fa-linkedin"></i></a>
</div>
</div>
你能告诉我我应该怎么做才能在Reddit和Tumblr上添加共享选项吗
非常感谢你帮助我
顺便说一句,我使用的主题是“Falife”,但他们不提供支持选项来优化外观。我试图复制其他类的代码行,但没有任何效果。我编辑了您的代码并添加了reddit和tumblr共享,希望能有所帮助
<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() ?>&media=<?php echo esc_url( $featured_img ); ?>&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&url=<?php echo wp_get_shortlink() ?>&title=<?php echo urlencode( get_the_title() ) ?>&summary=<?php echo urlencode( wp_strip_all_tags( get_the_excerpt() )) ?>&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>
我已经编辑了您的代码并添加了reddit和tumblr共享,希望对您有所帮助
<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() ?>&media=<?php echo esc_url( $featured_img ); ?>&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&url=<?php echo wp_get_shortlink() ?>&title=<?php echo urlencode( get_the_title() ) ?>&summary=<?php echo urlencode( wp_strip_all_tags( get_the_excerpt() )) ?>&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>
你可以使用wordpress网站的插件你可以使用wordpress网站的插件你可以使用wordpress的任何插件添加你想要的社交图标。你可以从WordPress下载它,也可以使用WordPress的任何插件添加你想要的社交图标。你可以从