Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #90171
    pfms84
    Participant

    Hi,

    I’ve been trying adventurous free and I’m considering buying your PRO version of it, but first I need to make sure everything works as expected.

    The problem I have is translating the theme options, like the search text or the featured content.
    I used those qtranslate-x tags (for instance, [:en]Search…[:pt]Pesquisar…[:]) but as soon I switch languages back and forth, I lose all of these translations.

    What can I do to make it work?

    Thank you for your support.

    #90185
    Sakin
    Keymaster

    @pfms84: Yes, those multi-language plugin like qTranslate-X, Polylang and WPML are supported only in pro version.

    #91478
    nican
    Participant

    Yeah, I have the same issue. Really strange!

    #91485
    Sakin
    Keymaster

    @nican: Yes, it’s supported only in Pro version or you need to build child theme (https://catchthemes.com/blog/create-child-theme-wordpress/) and add the following code in your child theme functions.php file

    if ( ! function_exists( 'adventurous_qtranslate_invalidcache' ) ) :
    /**
     * Template for Clearing qtranslate Invalid Cache
     *
     * To override this in a child theme
     * simply create your own adventurous_qtranslate_invalidcache(), and that function will be used instead.
     *
     * @since Adventurous 1.0
     */
    function adventurous_qtranslate_invalidcache( $menu_item ) {
    	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_qtranslate_invalidcache
    endif;
    
    add_action( 'after_setup_theme', 'adventurous_qtranslate_invalidcache' );

    About the search, it should be automatically translated with your language files. Don’t change in theme options.

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘qTranslate-X strange behavior’ is closed to new replies.