• Resolved Anonymous User 14263651

    (@anonymized-14263651)


    I have a positioning problem. Buttons are supposed to be shown under the post. But they show up after Related Posts block powered by Jetpack (but above YARPP related posts block).

    Is there a way to move the buttons to directly under the post content, before Jetpack Related Posts?

    https://www.ads-software.com/plugins/add-to-any/

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

    (@micropat)

    You could change Jetpack’s priority, or change AddToAny’s priority by adding the following code to your theme’s functions.php file:

    remove_filter( 'the_content', 'A2A_SHARE_SAVE_add_to_content', 98 );
    add_filter( 'the_content', 'A2A_SHARE_SAVE_add_to_content', 39 );

    You might need to experiment with the “priority” number, 39.

    Thread Starter Anonymous User 14263651

    (@anonymized-14263651)

    Thank you so mush. 39 worked!

    Hi micropat,

    I added the code to the end of the functions.php file, and this is what happened.
    – the related posts disappeared altogether
    – the added code appeared at the top of the webpages.

    Is there something else I should have typed?
    I am not familiar with coding so specific instructions would be very helpful.

    Thank you!

    Hello,
    It’s solved now. Turns out that I should not have added the code to the end of the functions.php file, but somewhere in the middle.
    Thanks for the code, simple and it works!

    I have the same problem with Yuzo related posts, but this trick did nothing for me. Any suggestions?

    Plugin Author micropat

    (@micropat)

    @cubexpert as suggested above, experiment with the priority number. In your case it’s probably 9 instead of 29:

    remove_filter( 'the_content', 'A2A_SHARE_SAVE_add_to_content', 98 );
    add_filter( 'the_content', 'A2A_SHARE_SAVE_add_to_content', 9 );

    For further help, ask the author of your ‘related posts’ plugin.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to move buttons to above Jetpack related posts?’ is closed to new replies.