Can't translate Theme options parameters
-
Hi,
I met with a theme option’s parameters translating problem. I’m using https://inspirythemesdemo.com/realhomes/ theme, and there are theme option page where I define name of Advanced Search Form title – Find your home. How it can be translated to another languages?
The same problem when I have a link to search result page, how specify link to another result pages (for corresponding language)?
I copied a piece of code where variables are assigned with values returned by get_option funtcion.<?php global $theme_search_url; $theme_search_url = get_option('theme_search_url'); global $theme_search_fields; $theme_search_fields= get_option('theme_search_fields'); if( !empty($theme_search_url) && !empty($theme_search_fields) && is_array($theme_search_fields) ): ?> <section class="advance-search "> <?php $home_advance_search_title= get_option('theme_home_advance_search_title'); if(!empty($home_advance_search_title)){ ?><h3 class="search-heading"><i class="fa fa-search"></i><?php echo $home_advance_search_title; ?></h3><?php } get_template_part('template-parts/search-form'); ?> </section> <?php endif; ?>
Viewing 8 replies - 1 through 8 (of 8 total)
Viewing 8 replies - 1 through 8 (of 8 total)
- The topic ‘Can't translate Theme options parameters’ is closed to new replies.