• Resolved sampuher

    (@sampuher)


    Good Morning,

    I have one question…

    How can I get the sharing buttons just after the text of a post?. I have an author box at the end of my posts and the sharing buttons appears after this box

    Any idea?

    Thanks a lot for your help.

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author micropat

    (@micropat)

    Similar to this topic, add the following PHP code using a “functionality” plugin such as the Code Snippets plugin:

    function addtoany_before_my_author_box( $query ) {
    	remove_filter( 'the_content', 'A2A_SHARE_SAVE_add_to_content', 98 );
    	
    	if ( $query->is_main_query() && is_singular() ) {
    		add_filter( 'the_content', 'A2A_SHARE_SAVE_add_to_content', 39 );
    	}
    }
    add_action( 'pre_get_posts', 'addtoany_before_my_author_box' );

    Lower the 39 number in the code as needed to make the buttons appear earlier than your author box.

    Thread Starter sampuher

    (@sampuher)

    Thanks,

    It worked perfectly!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Sharing buttons in a post’ is closed to new replies.