Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author vendidero

    (@vendidero)

    Hi,

    do you want to print the label bold only? How did you configure your delivery time format within your Germanized settings?

    If you do only want to format the label text you may need to add some custom markup by using our filter: woocommerce_germanized_delivery_time_html

    e.g.:

    add_filter( 'woocommerce_germanized_delivery_time_html', 'my_child_adjust_delivery_time_html', 10, 4 );
    
    function my_child_adjust_delivery_time_html( $html, $option, $term_html, $product ) {
        $replacements = array(
           '{delivery_time}' => $term_html,
        );
        return wc_gzd_replace_label_shortcodes( '<span class="delivery-time-label">' . __( 'Delivery time: ', 'my-text-domain' ) . ' {delivery_time}</span>', $replacements );
    }

    Now you can format the output via CSS e.g.:

    .delivery-time-label {
        font-weight: bold;
    }

    Cheers

    • This reply was modified 5 years, 5 months ago by vendidero.
    • This reply was modified 5 years, 5 months ago by vendidero.
    Thread Starter prokreeger

    (@prokreeger)

    That’s exactly what I wanted. Thanks a lot for great and fast support.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Delivery time text bold’ is closed to new replies.