Custom Search Text Box

Hi LOveLy colorlib
I’d like to change to the text in the search box, my website is in Persian Language, so I want to have ‘جستجو’ in that box instead of ‘search’.
Many Thanks to your kindness and patience in helping. :slight_smile:
url: http://shavandi.ir

Hi @ptotir,

I hope you are well today and thank you for your question.

You can try achieving this by using the attached small plugin specially developed for you that contains some custom code.

Best Regards,
Movin

Woooooooooooooow
it worked easily in http://shavandi.ir
but as you see it bugged product search in http://bemar.ir

Hi MOvin
Further check in http://shavandi.ir shows that your plugin also bugs internal pages, and changes some translations( I attached the sample)
http://shavandi.ir/1395/03/22/برو/

also we see some translation changes in dashboard

All my thanks goes to your kind help and support

but as you see it bugged product search in http://bemar.ir

I visited your shared site and saw the shared screenshot but didn’t find what it bugged there so could you please describe it a bit more in detail?

Please note the provided plugin will only translate the text generated by theme and not by any other plugin like WooCommerce.

Further check in http://shavandi.ir shows that your plugin also bugs internal pages, and changes some translations( I attached the sample)

The plugin will translate all the theme generated text “Search…” so is it happening for you in the internal pages?

also we see some translation changes in dashboard

I changed the plugin code so that it will only work in the front end and not in the admin area so please try using attached modified plugin removing the previously used plugin.

@Movin
Dear;

I visited your shared site and saw the shared screenshot but didn’t find what it bugged there so could you please describe it a bit more in detail?

before activating the plugin, all pages were in Persian Language, except the word ‘search’
but after updating the ‘comment’ part for posts changed from
پاسخ دهید

واردشده به عنوان حسین شوندی. بیرون رفتن؟

دیدگاه
to
پاسخ دهید

واردشده به عنوان حسین شوندی. بیرون رفتن؟

Comment

and also
یک نظر در “برو”
to
One thought on “برو”

I changed the plugin code so that it will only work in the front end and not in the admin area so please try using attached modified plugin removing the previously used plugin.

I also tried your update, but no changes were made in admin area.

I visited your shared site and saw the shared screenshot but didn’t find what it bugged there so could you please describe it a bit more in detail?

Before using the plugin, ‘woocommece’ alongside ‘Persian Woocommerce’ was working totally in Persian, but just after Plugin installation it changed ‘Product Search’ box from Persian to English.
Thanks for your patience

@MOvin
Hi,
dear movin I’ve found the solution to change
One thought on
into Persian, but I couldn’t figure out where is
<?php comment_form(); ?>
which is supposed to be in single.php If I put this code it would be solved, could you help me on this?

<?php
   $defaults = array(
       'title_reply' => 'Write your random text here.',
    );

    comment_form($defaults);
?>

Thanks

The comment_form function is called in the comments.php file of the theme.

Thanks MOvin
It worked fine

Just two more questions to close this topic:
1- If I update the sparkling theme, does this modification on comments.php, change? If yes, how can I avoid this to happen?
2- how can I change the word ‘comment’ highlighted in attached file?

1- If I update the sparkling theme, does this modification on comments.php, change? If yes, how can I avoid this to happen?

Yes if you make changes in the theme file then you have to make these changes again after theme updation as changes made in the theme files get lost on theme updation.

To avoid this please create child theme of sparkling theme and make changes in it.

2- how can I change the word ‘comment’ highlighted in attached file?

You can change it by translating the theme as described on the below page.

@Movin
Thanks to the support

You are most welcome here :slight_smile:

- how can I change the word ‘comment’ highlighted in attached file?

For the ones who follow this topic;
I restarted the wp and the sparkling theme to get new translations, so the issue got fixed.

Thanks for helping out here in this forum.

Your help here is really appreciated.