Need to change product title from H3 to P
-
Hi! I can’t find where I can change the product title selector from H3 to P, I used the carousel product. Can you point me where to change it?
Attachments:
You must be
logged in to view attached files.
Hello,
There is only 1 way to change the title’s tag of the products and it’s with the help of the below code, enter it to the functions.php file in your child theme.
if ( ! function_exists( 'woocommerce_template_loop_product_title' ) ) {
function woocommerce_template_loop_product_title() {
echo '<p class="wd-entities-title"><a href="' . get_the_permalink() . '">' . get_the_title() . '</a></p>';
}
}
add_filter( 'woocommerce_single_product_summary_single_title', 'woocommerce_template_loop_product_title' );
In the meantime, please feel free to ask any questions you may have!
Kind Regards
It worked perfect! Thanks, I’m also wondering about the selector in Blog titles in carousel, I need to change them from H3 to P, please!
Attachments:
You must be
logged in to view attached files.
Hello,
In order to change the tag for the blog carousel, first copy this woodmart/inc/shortcodes/content-slider.php
file to your child theme.
Next, find the code from 53 to 57 lines and change the tag in it.
https://monosnap.com/file/3PKkM7wHOhZpij2rtEylhfxDfbausL
If there’s anything else that I can help with you, do let me know.
Kind Regards
Hello,
I’m glad we managed to sort this out.
Always remember that you can reach out to us with any questions you may have.
We wish you a splendid day!
Kind Regards
The topic ‘Need to change product title from H3 to P’ is closed to new replies.