-
AuthorPosts
-
November 7, 2014 at 2:13 pm #140435
Nabeel AModeratorHi there,
To make the functionality work please replace the code with this one:
add_action ('the_content', 'add_button_navigation' ); function add_button_navigation ( $content ) { $prev_post = get_previous_post(); $next_post = get_next_post(); $facebook_share = "<a class='x-fb' href=\"#share\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-trigger=\"hover\" class=\"x-share\" title=\"" . __( 'Share on Facebook', '__x__' ) . "\" onclick=\"window.open('http://www.facebook.com/sharer.php?u=".urlencode( get_permalink() )."&t=Share This Story on Facebook ', 'popupFacebook', 'width=650, height=270, resizable=0, toolbar=0, menubar=0, status=0, location=0, scrollbars=0'); return false;\">Share This Story on Facebook</a>"; $my_custom_text = '<a class="x-previous" href="'.get_permalink( $prev_post->ID ).'">Previous Story</a> | <a class="x-next" href="'.get_permalink( $next_post->ID ).'">Next Story</a> | '.$facebook_share; if( is_singular('post') ) { $content .= $my_custom_text; } return $content; }This should work now. Cheers!
November 7, 2014 at 5:29 pm #140533
dscubaParticipantThis reply has been marked as private.November 8, 2014 at 6:24 am #140756
ChristopherModeratorHi there,
#1 Change our last suggested code to
add_action ('the_content', 'add_button_navigation' ); function add_button_navigation ( $content ) { $prev_post = get_previous_post(); $next_post = get_next_post(); $facebook_share = "<a class='x-fb' href=\"#share\" data-toggle=\"tooltip\" data-placement=\"bottom\" data-trigger=\"hover\" class=\"x-share\" title=\"" . __( 'Share on Facebook', '__x__' ) . "\" onclick=\"window.open('http://www.facebook.com/sharer.php?u=".urlencode( get_permalink() )."&t=Share This Story on Facebook ', 'popupFacebook', 'width=650, height=270, resizable=0, toolbar=0, menubar=0, status=0, location=0, scrollbars=0'); return false;\">Share This Story on Facebook</a>"; $my_custom_text = '<a class="x-previous" href="'.get_permalink( $prev_post->ID ).'">Previous Story</a> <a class="x-next" href="'.get_permalink( $next_post->ID ).'">Next Story</a> '.$facebook_share; if( is_singular('post') ) { $content .= $my_custom_text; } return $content; }#2 Please add the following CSS code under Customize -> Custom -> CSS:
a.x-previous, a.x-next,a.x-fb { text-align: center; font-weight:bold; }#3 the sharing buttons or next and prev buttons?
Hope it helps.
November 8, 2014 at 4:27 pm #140952
dscubaParticipantHi Team X,
1. It worked but need some padding or spacing between the top two buttons and the bottom button.
See http://www.espressoulcafe.com/daddy-daughter-date-night-chick-fil/
3. Per your question, I’d like all three buttons to display ABOVE the comments section.
Thank you.
November 9, 2014 at 3:15 am #141116
ChristopherModeratorHi there,
#1 Change your last CSS to :
a.x-previous, a.x-next, a.x-fb { text-align: center; font-weight: bold; margin: 0 5px 10px 0; }#2 I need to know how you added comment section , please provide us with login credential.
Thank you.
November 9, 2014 at 12:30 pm #141251
dscubaParticipantThis reply has been marked as private.November 9, 2014 at 11:14 pm #141418
ChristianModeratorThis reply has been marked as private.November 10, 2014 at 5:03 pm #142086
dscubaParticipantThis reply has been marked as private.November 11, 2014 at 4:52 am #142349
ZeshanMemberHi there,
Thank you for writing in!
It seems you might be having an issue with a third party plugin (FB Comments Master). Regretfully, we cannot provide support for third party plugins as our support policy in the sidebar states due to the fact that there is simply no way to account for all of the potential variables at play when using another developer’s plugin. Because of this, any questions you have regarding setup, integration, or troubleshooting any piece of functionality that is not native to X will need to be directed to the original developer.
Thank you for your understanding.
November 11, 2014 at 11:34 am #142614
dscubaParticipantThis reply has been marked as private.November 11, 2014 at 6:18 pm #142945
dscubaParticipantThis reply has been marked as private.November 12, 2014 at 12:24 am #143058
Paul RModeratorHi,
I was able to make the buttons appear above the comments box.
Please check http://www.espressoulcafe.com/daddy-daughter-date-night-chick-fil/
Thanks
November 12, 2014 at 3:12 pm #143714
dscubaParticipantThis reply has been marked as private.November 13, 2014 at 2:02 am #144053
Paul RModeratorYou’re welcome. 🙂
Thanks for letting us know, no need to reverse the code.
November 13, 2014 at 10:05 am #144352
dscubaParticipantThis reply has been marked as private. -
AuthorPosts
- <script> jQuery(function($){ $("#no-reply-136115 .bbp-template-notice, .bbp-no-topic .bbp-template-notice").removeClass('bbp-template-notice'); }); </script>
