Hello @storlab
@fabe helped me to sort this out. You have to create a sections folder in your child theme where you copy all the section php files to. Those section php files you can modify as previously mentioned. It worked for me. Let me send you everything @fabe send me.
Steps to take:
-
Create a child theme
-
Create a “Section” folder withing the child theme folder
-
Copy all the sections you want to translate into that folder:
front-page-bottom-header.php, etc…
-
Modifiy the php sections as follows:
<?php if ( $first_button_title ): ?>
<a>" title="<?php echo esc_attr( $first_button_title ); ?>" class="header-button-one"><?php echo esc_html( pll_e ( $first_button_title )); ?></a>
<?php endif; ?>
The part you need to add is the (pll_e ( )
The you also need to paste this into functions.php as follows:
/**
/* JUMBOTRON PART */
pll_register_string( ‘Button’, get_theme_mod( ‘illdy_jumbotron_general_first_button_title’, __( ‘Learn more’, ‘illdy’ ) ), ‘illdy’ );
pll_register_string( ‘Download’, get_theme_mod( ‘illdy_jumbotron_general_second_button_title’, __( ‘Learn more’, ‘illdy’ ) ), ‘illdy’ );
pll_register_string( ‘Jumbotron Tag Line’, get_theme_mod( ‘illdy_jumbotron_general_entry’, __( ‘lldy is a great one-page theme, perfect for developers and designers but also for someone who just wants a new website for his business. Try it now!’, ‘illdy’ ) ), ‘illdy’ );
pll_register_string( ‘First Word Header’, get_theme_mod( ‘illdy_jumbotron_title’, __( ‘Clean <span class=“span-dot”>.</span> Slick<span class=“span-dot”>.</span> Pixel Perfect’, ‘illdy’ ) ) );
/* ABOUT-US SECTION */
pll_register_string( ‘About-us’, get_theme_mod( ‘illdy_about_general_title’, __( ‘About’, ‘illdy’ ) ), ‘illdy’ );
pll_register_string( ‘About-us-entry’, get_theme_mod( ‘illdy_about_general_entry’, __( ‘It is an amazng one-page’, ‘illdy’ ) ), ‘illdy’ );
/* TESTIMONIALS SECTION */
pll_register_string( ‘Testimonials’, get_theme_mod( ‘illdy_testimonials_general_title’, __( ‘Testimonials’, ‘illdy’ ) ), ‘illdy’ );
/* BLOG SECTION */
pll_register_string( ‘Latest News’, get_theme_mod( ‘illdy_latest_news_general_title’, __( ‘Latest News’, ‘illdy’ ) ), ‘illdy’ );
pll_register_string( ‘Latest News Entry’, get_theme_mod( ‘illdy_latest_news_general_entry’, __( ‘If you are interested in the latest articles’, ‘illdy’ ) ), ‘illdy’ );
/* PROJECT SECTION */
pll_register_string( ‘Projects’, get_theme_mod( ‘illdy_projects_general_title’, ( ‘Projects’, ‘illdy’ ) ), ‘illdy’ );
pll_register_string( ‘Projects entry’, get_theme_mod( ‘illdy_projects_general_entry’, esc_html( ‘You’ll love our work. Check it out!’, ‘illdy’ ) ), ‘illdy’ );
/* SERVICES SECTION */
pll_register_string( ‘Services title’, get_theme_mod( ‘illdy_services_general_title’, __( ‘Services’, ‘illdy’ ) ), ‘illdy’ );
pll_register_string( ‘Services entry’, get_theme_mod( ‘illdy_services_general_entry’, __( ‘Discover our services’, ‘illdy’ ) ), ‘illdy’ );
/* TEAM SECTION */
pll_register_string( ‘Team title’, get_theme_mod( ‘illdy_team_general_title’, __( ‘Team’, ‘illdy’ ) ), ‘illdy’ );
pll_register_string( ‘Team entry’, get_theme_mod( ‘illdy_team_general_entry’, __( ‘Meet the people that are going to take your business to the next level.’, ‘illdy’ ) ), ‘illdy’ );
/* PROJECT SECTION */
pll_register_string( ‘Projects’, get_theme_mod( ‘illdy_projects_general_title’, __( ‘Projects’, ‘illdy’ ) ), ‘illdy’ );
pll_register_string( ‘Projects entry’, get_theme_mod( ‘illdy_projects_general_entry’, __( ‘You’ll love our work. Check it out!’, ‘illdy’ ) ), ‘illdy’ );
/* CONTACT-US SECTION */
pll_register_string( ‘Contact-us’, get_theme_mod( ‘illdy_contact_us_general_title’, __( ‘Contact us’, ‘illdy’ ) ), ‘illdy’ );
pll_register_string( ‘Contact-us-general’, get_theme_mod( ‘illdy_contact_us_entry’, __( ‘And we will get in touch as son as possible.’, ‘illdy’ ) ), ‘illdy’ );
pll_register_string( ‘Address’, get_theme_mod( ‘illdy_contact_us_general_address_title’, __( ‘Address’, ‘illdy’ ) ), ‘illdy’ );
pll_register_string( ‘Custumer support’, get_theme_mod( ‘illdy_contact_us_general_customer_support_title’, __( ‘Customer Support’, ‘illdy’ ) ), ‘illdy’ );
/* FULL WIDTH SECTION */
pll_register_string( ‘Full_width_general_title’, get_theme_mod( ‘illdy_full_width_general_title’, __( ‘Full-width’, ‘illdy’ ) ), ‘illdy’ );
pll_register_string( ‘Full_width_general_description’, get_theme_mod( ‘illdy_full_width_general_entry’, __( ‘Full-width Description’, ‘illdy’ ) ), ‘illdy’ );