Viewing 25 posts - 1 through 25 (of 25 total)
  • Author
  • #24064


    I’m translating the theme into Russian.

    My site is

    I don’t want to use some plugins for this, because there is not so much text to translate.

    Please, help me to find out where some pices of text are:

    1) “Search” in the Search field:

    I thought it is in searchform.php but translating this file didn’t help.

    2) Text in the dropdown search box:

    3) Other text on search result page (3 text blocks):

    And there are some bugs with nonlatin symbols:

    4) <… appears near the search keyword:

    Not always! Try out ” текст ” and you will see

    5) If nonlatin search, the result in searchbox shows errors:

    And the last one question

    6) I want to remove “Browse something else” block because it is always empty on my site:



    1.) Edit searchform.php, find this code

    placeholder='<?php _e('Search','avia_framework')?>

    2.) Edit functions-enfold.php, find this code

    $output .= __("Sorry, no posts matched your criteria", 'avia_framework');

    3.) Edit framework > php > function-set-avia-frontend.php

    if($wp_query->found_posts > 1)
    $output = $wp_query->found_posts ." ". __('search results for:','avia_framework')." ".esc_attr( get_search_query() );
    $output = $wp_query->found_posts ." ". __('search result for:','avia_framework')." ".esc_attr( get_search_query() );



    6.) You can add this on your custom.css

    .search-no-results .widget.avia_combo_widget {
    display: none;

    .search-no-results .template-search h3 {
    display: none;

    Let me tag the rest of the support team for 4 and 5.




    Thanks for reply, Ismael!

    1) I wrote “Поиск” (it is “search” in russian) and got the same error as 4) – now there is Mojibake inside the search field.

    Something is wrong with fonts…

    2), 3), 6) – all is nice, thanks!

    Now there are two more places to translate:

    8) “Portfolio items” in dropdown search field

    9) “IN” preposition in search result

    Best regards, Vitaly Filipenia



    Please follow the directions in this post to make the theme compatible with Russian language. Otherwise you will have issues all over the place.

    Please read this post in order to find any string you want within the theme in seconds (that is how we do it).

    See first if making the theme compatible with cyrillic will take care of the font issue, which it should, if not we will deal with it. Please let us know.




    It is a pity, Nick, but it did not work for me neither for zhenya77

    And my site:

    You can check my function-set-avia-backend.php here:

    I make changes via Dreamweaver so the code is correct.



    Those weird characters are not a font. They are Mojibake ( )

    Checking on this. hangon. You are using I think ISO-8859-1 encoding and not UTF-8 or perhaps somewhere the encoding changes because i see page has UTF-8 on it, but whether files were edited and saved in ISO-8859-1 format is another story.

    —-previous issues

    The block of code in my previous answer was to fix contact page and possibly other functionality in the theme and it is working correctly. If you look at source of contact page, ( ) you can see that now form field elements have a russian id but written in english letters. Before the new code, there was nothing there.


    If you want something to show up inside that widget, ( i see it here , but not on the other website) you need to create blog posts (not pages) That box displays only from posts. Also I don’t see any comments on your website so there is no data to display.

    To remove it.add this css to your website /css/custom.css file .widget.avia_combo_widget, .entry-content h3 {
    display: none;


    What makes you believe Dreamweaver is that dependable? Most developers dislike it (I use it though, too comfortable with it).





    I took a longer look at this since my localhost experienced the same problem as yours. The problem comes from Dreamweaver (at least mine did). If using Notepad2 you open up the theme files you’ve edited with Dreamweaver, specifically functions-enfold.php, searchform.php and the function-set-avia-backend.php , and in Notepad++ the fifth menu item is Encoding. The file I edited to paste the same word you used for search saved in ansi format. After converting it back to UTF8 (5th menu item), i no longer got that bad character set in the search box.

    If you go to the demo site of the theme and type Russian into the search box there are no problems at all which makes me believe that the problem lies elsewhere since this is the identical theme you and I and the demo site use.

    Open up .htaccess file located at the root of wordpress and add this to its top (if you don’t have that file just create it)

    AddDefaultCharset utf-8
    <IfModule mod_charset.c>
    CharsetSourceEnc utf-8
    CharsetDefault utf-8
    AddCharset utf-8 .atom .css .js .json .rss .vtt .webapp .xml




    Thanks for detailed reply, Nick.

    Concerning correct code ( ) – thank you, I see it is all good now!

    But I got some more questions.


    You are right, there would be no comments and no blog on site

    I added code to Quick CSS box and did not found something changed: .widget.avia_combo_widget, .entry-content h3 {
    display: none;


    What I did to solve encoding problem:

    1) Opened functions-enfold.php, searchform.php and the function-set-avia-backend.php via Notepad++ and saved them to “UTF-8 without BOM”. Then I updated files via FTP.

    2) Edited .htaccess according to you recomendations.

    And after this nothing changed. May bу I missed something or I shoud edit only original php files with Notepad++? (I just had edited files that where previosly saved in Dreamwiever)

    Thanks, Vitaly



    I think you got bigger problems. You are using a blacklisted IP, so I can no longer even connect to your website as well as the second website. Your IP is used to spread malware i think by different domains. I suggest you switch before your domain gets tainted as well from hosting in a bad neighborhood.




    Wow! My site in the blacklist? It is justcreated and i use the most expensive and safe hosting provider in Belarus. WordPress was preinstalled, so it is was not hacked.

    ОК, I will try to fix it.

    But can you please explain why you can not continue support?



    I didn’t say your site is blacklisted. I said your ip is blacklisted and gave you url to see who on your ip that is causing your whole ip to become blacklisted but so far only by 1 security company. Contact them and tell them that you are on a shared ip address. Your IP that you share is

    If you bought the theme and downloaded it from and not downloaded it from a warez/nulled website for free than your theme is not cracked. (themes are not cracked , only software is).

    These are the banned websites on your IP:,




    Thank you for the explanation!

    Before I never faced with such problems. I deleted my presupposition about cracked theme.

    Now I asked hosting support for help. May be dedicated IP is solution.

    OK, please don’t close the topic, I hope for your help after IP would be removed from the blacklist.


    Hmm… I got the response from the hosting support team:

    You got the following situation:
    Reputation of ASN 6697 | BELPAK-AS BELPAK
    The third level is given to Belarus :) And neither us not you can change it.

    I must mention that our laws oblige any entrepreneur to use only Belarussian hosting( which is extremly more expensive than in Russia, for example) for government agencies to have full access for all information.

    Contact them and tell them that you are on a shared ip address.

    It’s impossible. As written on uceprotect:

    Q: Can’t you make an exception for me?

    A: We never make exceptions. Requests are futile. Only your provider can fix this problem.



    Your host is wrong. Let me show you why. When I go to this domain (also in Beylorussia) there are no problems ( ) because its IP address isn’t on a list of blacklisted IPs from where hacking takes place. When I go to you domain, i get this. Tell him to put you on new IP. Its still in your country so govt can bother someone else. :)




    I see.

    One againg will try to reach support.

    Thank you!


    Fresh news: Nick, the site is blocked by the sowtware you use. Every one else see it clearly.

    I created a topic on Malwarebytes forum and asked to remove IP from the blacklist:

    Right now you can skip this blocking by reading following article:

    If you are afraid of skip blocking we shoud wait for 3-5 days until the IP would be removed and you get the updated Malwarebytes bases



    I am aware that its the anti virus software that blocking your IP, but since 200 million people use this software I thought you should know about the block.

    Have you added the code above ( ) to your htaccess file? Because right now something is not properly setup with you server. Because if I enter a Russian word , your server doesn’t show it when looking at the search box under magnifying glass

    But when the same word is searched on kriesi’s website , it comes out normally

    After using that .htaccess , I also have no problems.




    Thank you very much for the information about blocking. Now I am waiting for the reply from the Malwarebytes.


    Here is everything I have in .htaccess, please, check it out. May be I shoud write you code in some other place:

    AddDefaultCharset utf-8
    <IfModule mod_charset.c>
    CharsetSourceEnc utf-8
    CharsetDefault utf-8
    AddCharset utf-8 .atom .css .js .json .rss .vtt .webapp .xml

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^index.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]

    # END WordPress

    RewriteCond %{HTTP_HOST} ^$ [OR]
    RewriteCond %{HTTP_HOST} ^$
    RewriteRule ^/?$ "" [R=301,L]

    Thanks, Vitaly



    Looked into it now for some time and it might be much simpler than all of that ;D

    Please try the following: open functions-enfold.php

    and search for:

    $form = htmlentities( ob_get_clean() );

    Change it to:

    $form = htmlspecialchars(ob_get_clean()) ;

    Did the trick for me :)


    Yes! Kriesi, you are really Key Master! Now there are no Mojibake =)

    Thank you!

    Now there is a litte bug on my site and on your demo too — some unwanted symbols appear:

    It is not terrible, but may the the fix is the same simple?



    can you past the search string here? Have difficulties to reproduce the problems. looks like its some problem with the closing quote…





    Yeh, I also saw that. That is not always there , it appears depending on the length of the word being searched for. Only 30 characters are allowed in this entire line .. and sometimes it gets cut off in middle of character encoded quotes “” as in &quot

    Search results for “Снимок”…

    I would cut the size of this ‘Результаты поиска для’ because that has too many letters, so the actual search term never gets printed. Try it like ‘ ‘Результат для” … or even smaller, since these are useless letters, while the keyword is useful



    [edit] this reproduces it


    Ah yes, got it now. Seems like a problem with the truncating function of the breadcrumb navigation. Next update (version 1.7) will have a fix for that as well, assumed I am able to fix it ;)


    Thanks! Will wait for the update. And the theme would be really Multi language (because russian is not only in Russia, but practically in whole ex-USSR)!

    There are onle few things for me to translate – simple questions for support team:

    1) The header

    2) “Portfolio items” in dropdown search field

    3) “IN” preposition in search result

    And I’ll be the real Search-into-Russian King!



    I’ll close this thread now. If the problem still exists with 1.7 please open up a new thread.

    Best regards,


Viewing 25 posts - 1 through 25 (of 25 total)

The topic ‘Translating search’ is closed to new replies.