WPSlash

How to Change Default WooFood Accordion Thumbnail Size

Tuesday May 19, 2020

Hi, If you customised with CSS the style of product displayed within accordion of WooFood you will probably must also change the default thumbnail of 60px*60px in size to an other. For example to full or large to avoid stretching a 60*60 pixels image.

Copy the following snippet to your functions.php on your child theme.

add_filter('woofood_accordion_image_size', 'wpslash_change_accordion_image_hook', 10, 1);

function wpslash_change_accordion_image_hook($default)
{
return 'full';
}

Extra Tip

If you want to view all the additional image sizes WordPress having available on your site you can get it like the following example which will display all the additional images sizes on your footer.

Don’t forget to remove the code after getting the list of additional image sizes.

add_action("wp_footer", function()
{
global $_wp_additional_image_sizes; 
print '<pre>'; 
print_r( $_wp_additional_image_sizes ); 
print '</pre>';
});

Leave a Comment

Your email address will not be published. Required fields are marked *

Related Articles

Tutorials WooCommerce

How to Choose the Best Food Ordering System for Your Restaurant (And Why WooFood is the Ultimate Solution)

If you’re running a restaurant, café, or fast-food business in today’s digital age, offering online food ordering is no longer optional — it’s essential. Customers expect the convenience of browsing your menu, customizing their orders, and checking out seamlessly from their phone or computer. But with so many plugins and systems available, how do you choose the right […]
April 21, 2025
WooFood

How to Disable Coupons for Delivery Orders in WooCommerce

If you’re running a WooCommerce-powered restaurant or food delivery service, you might want to restrict certain coupon codes for delivery orders while keeping them valid for pickup orders. This ensures better control over discounts, prevents misuse, and improves your store’s pricing strategy. Why Restrict Coupons for Delivery Orders? Offering coupons is a great way to attract customers, but in food […]
June 20, 2023
WooFood

How to Automatically Re-Enable Disabled Products in WooFood Once a Day

If you’re running a WooCommerce-powered restaurant ordering system using WooFood, you might have products that automatically get disabled due to stock limits or availability settings. To ensure a smooth customer experience, you can automate the re-enabling process using a scheduled WordPress cron job. This method allows you to reset all product availability once a day, ensuring your menu stays active without manual intervention. Why […]
March 8, 2023