Support » Plugin: WooCommerce » Template of the widget for last products

  • Resolved herbertwest1

    (@herbertwest1)


    Hello,

    On my wordpress website, I have, on my homepage a widget with the last x products.
    That widget is shown as a list with very small pictures.
    I can change the size of the pictures, but that doesnt look interesting enough.

    Am I right or is there no other default template for the last products widget?

    Thanks!
    Jeremy

Viewing 5 replies - 1 through 5 (of 5 total)
  • crslz

    (@crslz)

    I think you mean this template file?

    https://github.com/woocommerce/woocommerce/blob/master/templates/content-widget-product.php

    You can overwrite this template with the necessary html/css (classes) until it meets your requirements.

    Regards

    Thread Starter herbertwest1

    (@herbertwest1)

    Thanks, i’ll look into it
    Is there a way for me to edit/overwrite this template that could not be overwritten again, with the next update?
    Just editing the css styles?

    crslz

    (@crslz)

    * This template can be overridden by copying it to yourtheme/woocommerce/content-widget-product.php.

    How to Edit Files: Edit files in an upgrade-safe way using overrides. Copy the template into a directory within your theme named /woocommerce keeping the same file structure but removing the /templates/ subdirectory.

    Example: To override the admin order notification, copy: wp-content/plugins/woocommerce/templates/emails/admin-new-order.php to wp-content/themes/yourtheme/woocommerce/emails/admin-new-order.php

    The copied file will now override the WooCommerce default template file.

    Thread Starter herbertwest1

    (@herbertwest1)

    Thanks a lot, i’ll look into whenever I find the time 🙂

    Plugin Support John Coy a11n

    (@johndcoy)

    Automattic Happiness Engineer

    Thanks @crslz

    I’ll mark this thread as resolved now.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Template of the widget for last products’ is closed to new replies.