Okay
  Public Ticket #1943606
Using non-latin characters in the Hero Section/Header
Closed

Comments

  • Aleko Pi started the conversation

    Hello, I'm trying to use Cyrillic characters in the Hero section title on such pages as "Stories" or "single portfolio". Instead, characters with a question mark are displayed.  ������� Top Menu and the rest of the content is displayed correctly. The problem only appears in the header/Hero section. How can I fix this?

    Thanks!

  •  1,822
    Support replied

    Hello Aleko,

    in the child theme's functions.php just uncomment this function:

    so remove /* from the beginning and */ from the end of it

    if( !function_exists('satelite_span_wordwrap') ){

        function satelite_span_wordwrap( $param_text_input ){

                if( empty( $param_text_input ) ){

                     return '';
                }

               $word_wrapped = "";
               $mb_len = mb_strlen( $param_text_input ); 
               for( $idx = 0; $idx < $mb_len; $idx++) 
               {
                    $mb_character = mb_substr( $param_text_input, $idx, 1);
                    $word_wrapped .= '' . $mb_character . '';
               }  

               return $word_wrapped;

        }

    }

    or if you are not using a child theme just replace the function with the above mentioned code in functions.php

    Thank you.

    Clapat Support

    https://www.clapat.com/

    Review Envato Item Support Policy

  • Aleko Pi replied

    Works! Thank you.