Change the position with functions.php
-
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]
The topic ‘Change the position with functions.php’ is closed to new replies.