Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
  • in reply to: Translating theme options output #26769
     ksoshnin
    Participant

    Update:

    I tried inserting this code into my child theme’s functions.php, but it didn’t work.

    COPY CODE
    remove_action('kleo_after_footer', 'kleo_show_contact_form');
    add_action('kleo_after_footer', 'child_show_contact_form');
    function child_show_contact_form() 
    {
    	$title = sq_option('contact_form_title','');
    	$content= sq_option('contact_form_text','');
    	
    	$translated_title = __($title, 'kleo_framework');
    	$translated_content = __($content, 'kleo_framework');
    	
    	echo do_shortcode('[kleo_contact_form title="'.$translated_title.'"]'.$translated_content.'[/kleo_contact_form]');
    }
Viewing 1 post (of 1 total)

Log in with your credentials

Forgot your details?