Advertisement
fauzanjeg

Add Custom Share Button

Sep 24th, 2021
196
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.54 KB | None | 0 0
  1. /** Add Custom Share Button */
  2. function custom_share_main_button( $main_button, $post_id ) {
  3.     $newsletter = '<a href="https://google.com" rel="nofollow" class="jeg_btn-newsletter expanded"><i class="custom_icon"></i><span>Newsletter</span></a>';
  4.     $subscribe  = '<a href="https://facebook.com.com" rel="nofollow" class="jeg_btn-facebook"><i class="fa fa-twitter"></i><span>Subscribe</span></a>';
  5.  
  6.     $main_button .= $newsletter . $subscribe;
  7.  
  8.     return $main_button;
  9. }
  10. add_filter( 'jnews_single_share_main_button', 'custom_share_main_button', 99, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement