Hi,
Go to enigma theme directory open home-services.php file,
go to line no. 9.
replace this line
<h3><?php echo esc_attr($wl_theme_options[‘home_service_heading’]); ?></h3>
with this
<h3><?php printf(__(‘%s’,’weblizar’),esc_attr($wl_theme_options[‘home_service_heading’])); ?></h3>
Now Open home-portfolio.php file goto line no. 9
and replace this
<h3><?php echo esc_attr($wl_theme_options[‘port_heading’]); ?></h3>
With this
<h3><?php printf(__(‘%s’,’weblizar’),esc_attr($wl_theme_options[‘port_heading’])); ?></h3>
Save the changes.
Now try to update lang(.pot) file.
Thanks
Hi,
thank you very much for your advice wpimran! 🙂
I found this solution to translate the two sections.
I created a file wpml-config.xml under /wp-content/polylang directory which contains the following lines of code:
<wpml-config>
<admin-texts>
<key name='enigma_options'>
<key name='service_1_title' />
<key name='service_2_title' />
<key name='service_3_title' />
<key name='service_1_text' />
<key name='service_2_text' />
<key name='service_3_text' />
<key name='port_1_title' />
<key name='port_2_title' />
<key name='port_3_title' />
<key name='port_4_title' />
<key name='port_heading' />
</key>
</admin-texts>
</wpml-config>
This is creating strings for translation in “Strings translation” tab in Settings >> Languages.
Thank you