Home Forums Basel support forum Text above & beneath add to cart button on Product page

Text above & beneath add to cart button on Product page

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #6997

    PD11
    Participant

    Hi,

    I would like to add text above & below the add to cart button. Can you provide me custom CSS code to add text?

    Thanks!

    cheers

    Peter

    #7002

    Artem Temos
    Keymaster

    Hello,

    Thank you so much for using our theme and contacting our support center.

    You can try to add this code snippet to the functions.php file to display some texts next to you button

    
    add_action( 'woocommerce_single_product_summary', function() {
       echo 'TEXT BEFORE BUTTON';
    }, 25 );
    
    add_action( 'woocommerce_single_product_summary', function() {
       echo 'TEXT AFTER BUTTON';
    }, 35 );
    

    Regards

    #7010

    PD11
    Participant

    Hi,

    I’m not familiar with the functions.php. Where can I put the text that will be shown beneath the add to cart button, for example?

    thanks,

    Peter

    #7014

    Artem Temos
    Keymaster

    Hello,

    Firstly, you need to install & activate child theme. You can find it in the package you download from Theme Forest. Then open for editing functions.php file in the basel-child folder via FTP and add the code we sent you in the previous reply.

    Regards

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