Home Forums WoodMart support forum Need to change product title from H3 to P

Need to change product title from H3 to P

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #377014

    b3lm0nt
    Participant

    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.
    #377189

    Luke Nielsen
    Keymaster

    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

    #377336

    b3lm0nt
    Participant

    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.
    #377456

    Luke Nielsen
    Keymaster

    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

    #377581

    b3lm0nt
    Participant

    Thanks!

    #377939

    Luke Nielsen
    Keymaster

    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

Viewing 6 posts - 1 through 6 (of 6 total)

The topic ‘Need to change product title from H3 to P’ is closed to new replies.