Home Forums WoodMart support forum Add custom text below the product name

Add custom text below the product name

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

    Sinaonee
    Participant

    Hi

    How to add custom text below the product name on the product page?

    Attachments:
    You must be logged in to view attached files.
    #34530

    Artem Temos
    Keymaster

    Hi,

    Try to add the following PHP code snippet to the child theme functions.php file to do this

    function woodmart_text_under_title(){
    	echo '<p>Custom text under product title.</p>';
    }
    add_action( 'woocommerce_single_product_summary', 'woodmart_text_under_title', 7 );

    Regards

    #34646

    Sinaonee
    Participant

    To add this code, the site will be disabled.
    Also want to any product, text different be.

    #34668

    Artem Temos
    Keymaster

    Sorry, but it will require more extra code customization that is out of our theme support scope.

    #34669

    Artem Temos
    Keymaster

    Here is an article that demonstrates how to add some custom fields to your products https://code.tutsplus.com/tutorials/adding-custom-fields-to-simple-products-with-woocommerce–cms-27904

    #34677

    Sinaonee
    Participant

    Thank You.

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

The topic ‘Add custom text below the product name’ is closed to new replies.