Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #798834

    Hey guys,
    I wrote a little js script, that creates a random text. With <div id="countdownTimer"></div> i can get my text out from the JS script.

    I want to add this text automatic to all my products (single product) on the short description. Is there any hook to do this?

    #799001

    Solved :)

    function combra_countdown(){
        echo '<div id="countdownTimer"></div>';
    }
    add_action( 'woocommerce_single_product_summary', 'combra_countdown', 25 );
    #799719

    Hi Alex,

    Glad you got it solved :)

    Best regards,
    Victoria

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.