• Resolved howardmil

    (@howardmil)


    Hi
    Trying out your plugin and so far its quite good. Tell me, is there a code to manually put the BOTTOM SHARE buttons after MY POST (on the above linked page) BEFORE(ABOVE) MY SUBSCRIBE BOX as you will see there?

    Also, some plugins have trouble with POST IMAGE on Facebook. Why I do not know. I do not have a facebook page but want it for others to share. Does it display properly with image as on Twitter?
    Thanks
    Howard

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

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

    (@micropat)

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

    function addtoany_before_my_subscribe_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_subscribe_box' );

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

    Thread Starter howardmil

    (@howardmil)

    Thanks
    Would I be correct in assuming that (39) will not change anything or that I must adjust it accordingly?
    Also curious- if I had put icons plugin into site before my subscription widget, would the icons have still moved to below subscription or MAYBE NOT??
    Howard

    Plugin Author micropat

    (@micropat)

    The order is based on priority numbers. It’s somewhat of a guessing game unless you happen to know the priority number of the widget area that contains your subscription widget.

    Thread Starter howardmil

    (@howardmil)

    Bad code…thanks to code snippets site was not maligned

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘code snippet to place icons above subscribe form’ is closed to new replies.