Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1179266
    scr3wtape2
    Participant

    Hi there,

    I’ve tried to automatically add Entry Share buttons to every blog post (I don’t want them on pages) using other articles on the forum (editing functions.php and framework content.php in child theme) but it isn’t working for me. Hoping you can take a look when you get a sec (I will send you URL/creds privately in a sec).

    Thanks!

    #1179267
    scr3wtape2
    Participant
    This reply has been marked as private.
    #1179281
    Thai
    Moderator

    Hi There,

    Please add the following code under functions.php file locates in your child theme:

    add_action( 'x_after_the_content_end', 'add_to_single_posts' );
    function add_to_single_posts() {
    	if ( is_single() ) {
    		echo do_shortcode( '[x_share title="Share this Post" facebook="true" twitter="true" google_plus="true" linkedin="true" pinterest="true" reddit="true" email="true"]' ); 
        }
    }

    Hope it helps 🙂

    #1179409
    scr3wtape2
    Participant

    Thanks…this didn’t work.

    #1179438
    Thai
    Moderator
    This reply has been marked as private.
    #1179557
    scr3wtape2
    Participant
    This reply has been marked as private.
    #1179866
    Rad
    Moderator

    You’re welcome!

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