Created
June 2, 2023 04:18
-
-
Save ahmedeshaan/d0b2e6bdfe0842ded9ee931c84bbbcf7 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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>'; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
h2.woocommerce-loop-product__title {
font-size: 1em;
font-weight: 300;
}