• Resolved Webfolio Webdesign

    (@webreneszansz)


    Hi,

    Thank yo very much for the great plugin, I have one question, regarding to the setup.

    I added this code:

    add_filter( ‘the_content’, ‘A2A_SHARE_SAVE_add_to_content’, 9 );

    to the (child) functions.php, based on this article:

    https://www.ads-software.com/support/topic/share-buttons-dont-appear-immediately-below-post-2/

    to have the icons right after the content, before any author and relted post area.

    Everything worked fine, until the last update of the plugin. Currently, the icons are visible if only I switch on the option, but in this case, they appear twice, right after the content and also under the other modules, on the bottom of the site.

    Please be so kind and help to solve the issue.

    It would be great to add this question to the plugin setup area, to make possible to choose the expected position of the icons.

    Thank you very much!

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

Viewing 1 replies (of 1 total)
  • Plugin Author micropat

    (@micropat)

    Hi,

    Make sure you’re using the full code to both remove the standard placement and add it back with the adjusted priority number (9 instead of 98 in the example below):

    // Make AddToAny standard share buttons appear above my related posts
    function addtoany_before_my_related_posts( $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', 9 );
        }
    }
    add_action( 'pre_get_posts', 'addtoany_before_my_related_posts' );
Viewing 1 replies (of 1 total)
  • The topic ‘Double icon filed after the last update’ is closed to new replies.