Tagged: x
-
AuthorPosts
-
July 9, 2016 at 3:22 am #1079056
nozzivParticipantHi
The website is showcased for stack Integrity,
How to have this option “social shares” activated (see images attached) ?
1 – PAGE : http://www.gisidesign.com/creative-blog
2 – POSTS : http://www.gisidesign.com/schluss-mit-dem-ideenklauBest regards,
Michael
July 9, 2016 at 4:10 am #1079104
Nabeel AModeratorHi Michael,
Thanks for writing in! Please add the following code in your Child Theme’s functions.php file:
function share_for_individual_post( $content ) { if ( is_singular('post') ) { echo do_shortcode( '[share title="Share this Post" facebook="true" twitter="true" google_plus="true" linkedin="true" pinterest="true" reddit="true" email="true"]' ); } } add_action('x_before_the_content_end', 'share_for_individual_post');Let us know how this goes!
July 9, 2016 at 4:51 am #1079128
nozzivParticipantThanks Nabeel, works great on Post, what about on PAGE (see point 1 on my previous message) ?
1 – PAGE : http://www.gisidesign.com/creative-blog
Best regards,
Michael
July 9, 2016 at 5:00 am #1079143
ChristopherModeratorHi there,
Please update previous code to :
// Social Sharing Buttons on Blog Posts // ============================================================================= function share_for_posts( $content ) { if ( is_home() || is_singular('post') ) { echo do_shortcode('[share title="Title" facebook="true" twitter="true" google_plus="true" linkedin="true" pinterest="true" reddit="false" email="true"]'); } } add_action('x_before_the_content_end', 'share_for_posts'); add_action('x_before_the_excerpt_end', 'share_for_posts');Hope it helps.
July 9, 2016 at 5:58 am #1079175
nozzivParticipantGreat! Thanks a lot Christopher.
Have a nice day,
Michael
July 9, 2016 at 6:01 am #1079176
Nabeel AModeratorGlad we could help 🙂
Cheers!
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-1079056 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
