• Hi there,

    i would like to use custom built header and it works fine, but i can’t translate it. I’ve woo cart element in menu which is not translated. If switched to the any other header avaible in theme, translation works fine. It does not matter if i use woo cart element from elementor pro or woo cart from ocean elemntor widgets. Translation doesn’t work when custom header is set.

    I was trying to clearing cache without any results. For translation im using loco translate plugin.

    I would be greatfull for any advice.

    Kind regards

    The page I need help with: [log in to see the link]

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter chosendaone

    (@chosendaone)

    Right now im using .oew-cart-dropdown {display:none;} to hide these strings which are not translated.

    Hello,

    Try to use the below code in the functions.php file of your child theme and check.

    function my_comment_placeholder_text() {
    $text = __( 'MY TEXT', 'oceanwp' );
    return $text;
    }
    add_filter( 'ocean_comment_placeholder', 'my_comment_placeholder_text' );

    PS- function name and the text in the second step in the filter must match, it’s best to use different names for each translation the first one is the original string name.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Translate doesn’t affect custom header’ is closed to new replies.