Tagged: 

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #78240
    monicavilas
    Participant

    Hi,
    I’ve built a website in two languages and now that is nearly done I realized there is one thing that doesn’t work.
    http://victorpanicello.com/
    (It isn’t live yet.)

    In my featured slider images there is some text (some images are graphs with text). That’s why I’ve uploaded different images (featured image in each page) for each language.
    When I’m on the main page and change language this images in the slider doesn’t change.
    The strange thing is that when I preview the web while customizing the featured slider it does work (so the image change when switching languages).

    Can you please advice?

    Thank you very much!!

    #78290
    Sakin
    Keymaster

    @monicavilas: Which plugin are you using it and if that is working in customizer then it should work in live as well. Or you can just build child theme, for child theme refer to http://catchthemes.com/blog/create-child-theme-wordpress/. You can also download sample Catch Base child theme from there and then add the following code in your child theme functions.php file

    function catchbase_child_invalidcache() {
    	delete_transient( 'catchbase_featured_slider' );
    }
    add_action( 'after_setup_theme', 'catchbase_child_invalidcache' );
    #78291
    monicavilas
    Participant

    @sakin
    I really appreciate your answer.
    My problem has been solved after adding what you suggested on child theme’s functions.php!
    Thanks again for solving my problem and for you fast reply! really impressed 😉

    #78296
    Sakin
    Keymaster

    @monicavilas: Thanks for your appreciation. If you like my support and Catch Base theme then please support by providing your valuable review and rating at https://wordpress.org/support/view/theme-reviews/catch-base?rate=5#postform

    #78297
    monicavilas
    Participant

    done!

    #78302
    Sakin
    Keymaster

    @monicavilas: Thanks 🙂

    #92455
    monicavilas
    Participant

    Hi again Sakin,
    I’ve built another website with the same theme (which I love) and I am having the exact same issue as described many months ago..

    I’ve built a website in three languages and now that is nearly done I realized there is one thing that doesn’t work.
    In my featured slider images there is some text (some images are graphs with text). That’s why I’ve uploaded different images (featured image in each page) for each language.
    When I’m on the main page and change language this images in the slider doesn’t change.
    The strange thing is that when I preview the web while customizing the featured slider it does work (so the image change when switching languages).

    I tried to add what you suggested months ago in my editor (I’ve built a child theme), but I had worse luck this time and didn’t work..
    Could you give me a hint on how to solve this?

    http://www.dbgen.org

    Your help is much appreciated!
    Thanks,

    Mònica

    #92468
    Sakin
    Keymaster

    @monicavilas: Actually, Catch Base free doesn’t support multi-language and you might want to consider using Catch Base Pro theme. But as per your message, you are saying it’s working in customizer then can you try adding the following code in your child theme functions.php file:

    if ( ! function_exists( 'catchbase_wpml_invalidcache' ) ) :
    /**
     * Template for Clearing WPML Invalid Cache
     *
     * To override this in a child theme
     * simply create your own catchbase_wpml_invalidcache(), and that function will be used instead.
     *
     * @since Catch Base Pro 3.0
     */
    function catchbase_wpml_invalidcache() {
    	delete_transient( 'catchbase_featured_content' );
    	delete_transient( 'catchbase_featured_slider' );
    	delete_transient( 'catchbase_footer_content' );	
    	delete_transient( 'catchbase_promotion_headline' );
    	delete_transient( 'catchbase_featured_image' );
    	delete_transient( 'all_the_cool_cats' );	
    } // catchbase_wpml_invalidcache
    endif;
    
    add_action( 'after_setup_theme', 'catchbase_wpml_invalidcache' );
    #92492
    monicavilas
    Participant

    Hi Sakin,
    thanks again for your suggested solution!
    It did work 🙂

    Thanks,

    #92502
    Sakin
    Keymaster

    @monicavilas: Nice 🙂

Viewing 10 posts - 1 through 10 (of 10 total)
  • The topic ‘Catch Base I Featured Slider – switching languages’ is closed to new replies.