• Resolved rajatag

    (@rajatag)


    Hello,

    Currently on my local site, the reactions are being displayed above the author bio and comments. Is it possible to change the location to the extreme end of the page even below comments?

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

    (@wpreactions)

    Hi,

    You can add following code in your theme functions.php

    remove_filter(‘the_content’, array($wpra_lite, ‘content_adder’));
    add_action(‘comment_form_after’, array($wpra_lite, ‘content_adder’));

    Please try and let us know

    Hi, I have the same problems and I tried your suggestions also (at it doesn’t give any effect), may I know how to move the wpreactions location? I want to put it in the bottom of pagination, currently the location is in the above pagination. Thanks

    Thread Starter rajatag

    (@rajatag)

    Yes it didn’t work for me even

    Plugin Author wpreactions

    (@wpreactions)

    Hi,

    To move reactions you must have action hook on the place you want by your theme or you must add custom hook.

    Then you can use above code with that hook to move reactions.

    Thanks

    do you have some example regarding the custom hook? sorry I am quite newbie

    Plugin Author wpreactions

    (@wpreactions)

    You can use following code:

    add_action('the_content', function() {
            global $wpra_lite;
    	remove_filter('the_content', array($wpra_lite, 'content_adder'));
    }, 99999);
    
    add_action('wpra_lite_custom_display', function() {
    	$options = WP_Reactions\Lite\Config::$current_options;
    	$reactions = WP_Reactions\Lite\Shortcode::build($options);
    	$reactions = str_replace(["\r", "\n", "\r\n"], '', $reactions);
    	echo $reactions;
    });

    wpra_lite_custom_display – here is custom hook, you need to open your template code, and custom hook like this where you want reactions to be appear.

    <?php do_action('wpra_lite_custom_display'); ?>

    Thanks

    • This reply was modified 2 years, 11 months ago by wpreactions.
    • This reply was modified 2 years, 11 months ago by wpreactions.
Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Is it possible to change the position of WP reactions ?’ is closed to new replies.