Skip to content

Instantly share code, notes, and snippets.

@ahmedeshaan
Created June 2, 2023 04:18
Show Gist options
  • Save ahmedeshaan/d0b2e6bdfe0842ded9ee931c84bbbcf7 to your computer and use it in GitHub Desktop.
Save ahmedeshaan/d0b2e6bdfe0842ded9ee931c84bbbcf7 to your computer and use it in GitHub Desktop.
<?php
function woocommerce_template_loop_product_title() {
echo '<h2 class=“name product-title' . esc_attr( apply_filters( 'woocommerce_product_loop_title_classes', 'woocommerce-loop-product__title' ) ) . '“>';
woocommerce_template_loop_product_link_open();
echo get_the_title(); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped
woocommerce_template_loop_product_link_close();
echo '</h2>';
}
@ahmedeshaan
Copy link
Author

h2.woocommerce-loop-product__title {
font-size: 1em;
font-weight: 300;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment