Translating custom fields
-
Hi,
I’m need help in translating a few texts. So I installed a no longer maintained theme. I have almost everything up and ready but I can’t translate the slider and the CTA components.
I tried editing theme pot files but the actual texts appears nowhere. So I accesed to the code and found these definitions:
<div class="title-wrap"> <h3><?php echo esc_html( $avenue_options['sc_cta3_title'] ); ?></h3> </div> <p> <?php echo esc_html( $avenue_options['sc_cta3_text'] ); ?> </p>
So I started looking for possible definitions of the variables (cta1, cta2, etc) and I found them on functions.php:
// CTA TRIO
‘sc_cta_bool’ => ‘yes’,
‘sc_cta1_title’ => __( ‘Theme Options’, ‘avenue’ ),
‘sc_cta1_icon’ => ‘fa-cogs’,
‘sc_cta1_text’ => __( ‘Change typography, colors, layouts…’, ‘avenue’ ),
‘sc_cta1_url’ => ”,
‘sc_cta1_button_text’ => __( ‘Click Here’, ‘avenue’ ),‘sc_cta2_title’ => __( ‘Responsive Layout’, ‘avenue’ ),
‘sc_cta2_icon’ => ‘fa-mobile’,
‘sc_cta2_text’ => __( ‘Fully responsive and mobile-ready’, ‘avenue’ ),
‘sc_cta2_url’ => ”,
‘sc_cta2_button_text’ => __( ‘Click Here’, ‘avenue’ ),‘sc_cta3_title’ => __( ‘Professional Design’, ‘avenue’ ),
‘sc_cta3_icon’ => ‘fa-diamond’,
‘sc_cta3_text’ => __( ‘Modern design to give your site a professional look’, ‘avenue’ ),
‘sc_cta3_url’ => ”,
‘sc_cta3_button_text’ => __( ‘Click Here’, ‘avenue’ ),I changed the values cusstomizing the site, but I cannot find a way to translate these fields when access in a different language to my site.
Thanks in advance.
- This topic was modified 5 years, 2 months ago by . Reason: Moved to Fixing WordPress, this is not an Everything else WordPress topic
The page I need help with: [log in to see the link]
- The topic ‘Translating custom fields’ is closed to new replies.