Tagged: x
-
AuthorPosts
-
April 6, 2016 at 10:54 pm #870492
RobertParticipantHi,
How can I add a return link in the bottom right hand corner of every post? I would like the return link to bring the user back to the main blog page.Also, how can I add social sharing buttons at the bottom of every post?
Thanks!
April 7, 2016 at 4:41 am #870859
Nabeel AModeratorHi there,
Thanks for writing in! To assist you with this issue, we’ll first need you to provide us with your URL. This is to ensure that we can provide you with a tailored answer to your situation. Once you have provided us with your URL, we will be happy to assist you with everything.
April 7, 2016 at 1:52 pm #871664
RobertParticipantThis reply has been marked as private.April 7, 2016 at 6:31 pm #872057
RobertParticipantThis reply has been marked as private.April 8, 2016 at 2:00 am #872414
Rue NelModeratorHello Robert,
Thanks for providing the url.
To add a social sharing buttons and a return link in the bottom right hand corner of every post, please insert this following code in your child theme’s functions.php file.
// Add share button at the bottom of every single posts // ============================================================================= add_filter( 'the_content', 'add_share_button' ); function add_share_button($content){ if ( is_single() ) { $content .= do_shortcode('[share class="mtl" title="Share this Post" facebook="true" twitter="true" google_plus="true" linkedin="true" pinterest="true" reddit="true" email="true"]'); } // To add a return link to blog index $content .= '<div class="x-container return-link"><a class="x-btn x-btn-regular right" href="#">Blog Index <i class="x-icon x-icon-arrow-right"></i></a></div>'; return $content; } // =============================================================================We would loved to know if this has work for you. Thank you.
April 9, 2016 at 6:16 pm #874556
RobertParticipantThanks for looking into this and providing a solution. The social media buttons are showing up great.
I have 2 remaining issues that I would really appreciate your help resolving
1) The Return button is showing up in the post but when I click on it, it brings me to the top of the post Not back to the main blog page.
2) The post tags are still showing up below the posts on the main blog search page.
Thanks!
April 9, 2016 at 6:24 pm #874567
RobertParticipant#2 is resolved. I just need help resolving the 1) above. Thanks!
April 10, 2016 at 4:18 am #874987
Rue NelModeratorGreat!
Thanks for letting us know that this issue has been resolve.April 10, 2016 at 4:06 pm #875572
RobertParticipant#2 is resolved but #1 is not.
The return button is showing up on post page but when you click on it, it brings you to the top of page. We want it to bring you back to the main blog page.
Also, I just noticed the return button is showing up on all of the pages. It should only display on the post page.
Can you please advise how we resolve these issues. Thanks!
April 11, 2016 at 2:21 am #876037
ChristopherModeratorHi there,
Please update your code in functions.php file to :
/ Add share button at the bottom of every single posts // ============================================================================= add_filter( 'the_content', 'add_share_button' ); function add_share_button($content){ if ( is_single() ) { $content .= do_shortcode('[share class="mtl" title="Share this Post" facebook="true" twitter="true" google_plus="true" linkedin="true" pinterest="true" reddit="true" email="true"]'); } // To add a return link to blog index if ( is_singular("post") ) { $content .= '<div class="x-container return-link"><a class="x-btn x-btn-regular right" href="https://www.belmero.com/blog">Blog Index <i class="x-icon x-icon-arrow-right"></i></a></div>'; } return $content; } // =============================================================================Instead of
https://www.belmero.com/blogadd blog’s URL.Hope it helps
April 11, 2016 at 11:25 am #876719
RobertParticipantThank you! That seemed to work with just a small tweak to the href url.
We’ll continue testing and let you know if we run into any other issues. Thanks.!
April 11, 2016 at 12:27 pm #876852
Prasant RaiModeratorFeel free to ask us again. Have a great day! 🙂
-
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-870492 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
