Forum Replies Created

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • Anca
    Participant

    Hello Sakin,

    I copied again the code and now it is working. My problem now is that I can not see where should I add the text for the second language. Now Feature content and Promotion Headline can not be modified in both languages.
    Now it is written only in Romanian. The website is http://asociatiadeenoturism.ro/

    Please pleas please advise.

    Thank you in advance,
    Anca

    Anca
    Participant

    Hi Sakin and thank you for your answer.
    I created the child theme with the plugin you suggested, activated and added your code in the functions.php file. After saving I got HTTP ERROR 500.
    The content of the file is currently below (now the code you gave me is put as comment). Where did I got wrong?

    <?php
    //
    // Recommended way to include parent theme styles.
    // (Please see http://codex.wordpress.org/Child_Themes#How_to_Create_a_Child_Theme)
    //
    add_action( ‘wp_enqueue_scripts’, ‘theme_enqueue_styles’ );
    function theme_enqueue_styles() {
    wp_enqueue_style( ‘parent-style’, get_template_directory_uri() . ‘/style.css’ );
    wp_enqueue_style( ‘child-style’,
    get_stylesheet_directory_uri() . ‘/style.css’,
    array(‘parent-style’)
    );
    }
    //
    // Your code goes below
    //
    //if ( ! function_exists( 'adventurous_poly_invalidcache' ) )

    /**
    * Template for Clearing Polylang Invalid Cache
    */
    /*
    function adventurous_poly_invalidcache() {
    delete_transient( 'adventurous_post_sliders' );
    delete_transient( 'adventurous_page_sliders' );
    delete_transient( 'adventurous_category_sliders' );
    delete_transient( 'adventurous_image_sliders' );
    delete_transient( 'adventurous_homepage_headline' );
    delete_transient( 'adventurous_homepage_featured_content' );
    delete_transient( 'adventurous_footer_content' );
    delete_transient( 'adventurous_footercode' );
    delete_transient( 'adventurous_featured_image' );

    } // adventurous_wpml_invalidcache
    */
    #endif;

    #add_action( 'after_setup_theme', 'adventurous_poly_invalidcache' );

    Anca
    Participant

    Hello,
    I am using Adventurous Free Theme and installed Polylang. Is there any possibility to translate the Featured Content and Promotion Headlines areas on this free theme?

    I translated the entire website, but these two areas did not work.

    Thank you in advance,
    Anca

Viewing 3 posts - 1 through 3 (of 3 total)