Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #905051
    mich01
    Participant

    I am using the renew theme, and need to put the sharing social icons shortcode so it appears on every page and post but I am not sure where exactly I put the code.

    [share title=”Share this Post” facebook=”true” twitter=”true” google_plus=”true” linkedin=”true” pinterest=”true” reddit=”true” email=”true”]

    The social icons for connecting are current in the header and footer.

    kind regards
    Michelle

    #905997
    Darshana
    Moderator

    Hi there,

    Thanks for writing in! Because this requires a template change, I’d advise that you setup a child theme. This allows you to make code changes that won’t be overwritten when an X update is released. After your child theme is setup, please review how we recommend making template changes in Customization Best Practices.

    Then add the following code into your child theme’s functions.php file.

    
    // Add Social Share under every Posts & Pages
    add_filter( 'the_content', 'add_share_button' );
    function add_share_button($content){
    	$content .= do_shortcode('[x_share title="Share this Post" facebook="true" twitter="true" google_plus="true" linkedin="true" pinterest="true" reddit="true" email="true"]');
    	return $content;
    }
    

    Hope that helps.

  • <script> jQuery(function($){ $("#no-reply-905051 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>