• The loading button appears off the side edge of my product listings. Ive tried wrapping the ‘woocommerce_after_shop_loop’ in a div in my taxonomy-product_cat.php template but it doesnt change anything. So im trying to figure out how to overide the position using functions.php to show after the main content. Something like this…

    add_action( ‘woocommerce_after_main_content’, ‘change_load_more_buttons’, 10 );
    function change_load_more_buttons() {
    echo ‘<div class=”d-flex flex-md-row justify-content-center w-100″>’;
    // here is where i want to show the loading image
    echo ‘</div>’ ;
    }

    Whats the best way to get the loading image to show after the woocommerce main content?

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

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

    (@razyrx)

    Hello,

    Plugin display loading icon after block with products with JavaScript code.
    It means changes in PHP do not change how it works at all.

    You can try to use custom JavaScript to fix this issue.
    After add loading icon plugin trigger berocket_lmp_start_next
    event on document.
    When loading is ended plugin trigger berocket_lmp_end event on document.

    Regards,
    Oleg

Viewing 1 replies (of 1 total)

The topic ‘Change the position with functions.php’ is closed to new replies.