Please submit a private ticket if you need to share sensitive information, such as license details and admin credentials.

Okay
  Public Ticket #2583562
Set default text and timer style
Closed

Comments

  • Leo started the conversation

    Hi. I want to set default above text, under text and timer style for every product since I'm using the same string and style for them. Can you please tell me what code should I add to achieve that?

  •  767
    Janilyn replied

    Hi Leo,

    Thanks for contacting us here.

    If you're using the Premium version of Countdown Timer, you can go to the plugin settings. configure the countdown clock settings then copy the shortcode to paste in anywhere you would like to display the timer: https://prnt.sc/v8i2dt.

    Best regards.

    Janilyn T. - WPClever Support Agent

  • Leo replied

    Hi. I mean I want to set default text for timers showing on the product pages. The shortcode one is not applicable in this case. I see that there's filter hooks in the plugin. Can you please show me what code should I put to set default text?

  •  767
    Janilyn replied

    Hi Leo,

    I have assigned one of our developers to help you with that. 

    He’ll be looking into your question and responding with specific instructions as soon as possible. 

    Please stay patient as we're having very heavy workloads, it might take some time for our developers to reach back.

    Best regards.

    Janilyn T. - WPClever Support Agent

  •  1,223
    Dustin replied

    Hi Leo,

    Please add below code to current-theme (or child-theme) / functions.php and change the text as you want.

    add_filter( 'wooct_text_above', 'wooct_your_text_above', 99, 2 );
    function wooct_your_text_above( $text, $product_id ) {
        return 'Your text above';
    }
    add_filter( 'wooct_text_under', 'wooct_your_text_under', 99, 2 );
    function wooct_your_text_under( $text, $product_id ) {
        return 'Your text under';
    }
    add_filter( 'wooct_text_ended', 'wooct_your_text_ended', 99, 2 );
    function wooct_your_text_ended( $text, $product_id ) {
        return 'Your text ended';
    }

    Best regards,
    Dustin

  • Leo replied

    Hi. It works great as I expected! Thanks!