Tagged: x
-
AuthorPosts
-
April 28, 2016 at 9:06 pm #905051
mich01ParticipantI 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
MichelleApril 29, 2016 at 1:24 pm #905997
DarshanaModeratorHi 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.
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-905051 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
