Trying to move sharers

Community Forums Forums Design Tips and Tricks Trying to move sharers

This topic is: not resolved

This topic contains 3 replies, has 2 voices, and was last updated by  rfmeier 1 year, 9 months ago.

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
  • #89368


    I’m trying to move the position of the social sharers that appear at the bottom of my single posts to above the related stories …. can anyone help me out?




    What share plugin are you using? Both plugins are most likely appending their html on the WordPress ‘the_content’ filter. If the share plugin’s ‘the_content’ filter priority can be set lower than the related posts, then it should appear above the related posts.



    Thanks for your help, I’m using this one:



    I looked into WP Socializer, but they are doing something goofy with the way they add their filters, so I looked into nr related posts plugin and found better results.

    You can try the following in the theme’s functions.php file;

    //	remove the default relate content filter
    remove_filter( 'the_content', 'nrelate_related_inject', 10 );
    remove_filter( 'the_excerpt', 'nrelate_related_inject', 10 );
    //	add the related content filter with a lower priority
    add_filter( 'the_content', 'nrelate_related_inject', 15 );
    add_filter( 'the_excerpt', 'nrelate_related_inject', 15 );

    I hope this helps.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.