Tagged: catch base
- This topic has 9 replies, 2 voices, and was last updated 7 years, 11 months ago by Sakin.
-
AuthorPosts
-
October 20, 2015 at 10:02 pm #78240monicavilasParticipant
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!!
October 21, 2015 at 1:31 pm #78290SakinKeymaster@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
filefunction catchbase_child_invalidcache() { delete_transient( 'catchbase_featured_slider' ); } add_action( 'after_setup_theme', 'catchbase_child_invalidcache' );
October 21, 2015 at 2:00 pm #78291monicavilasParticipant@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 😉October 21, 2015 at 2:16 pm #78296SakinKeymaster@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
October 21, 2015 at 2:32 pm #78297monicavilasParticipantdone!
October 21, 2015 at 5:55 pm #78302SakinKeymaster@monicavilas: Thanks 🙂
May 28, 2016 at 12:35 am #92455monicavilasParticipantHi 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?Your help is much appreciated!
Thanks,Mònica
May 28, 2016 at 7:29 am #92468SakinKeymaster@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' );
May 29, 2016 at 1:41 am #92492monicavilasParticipantHi Sakin,
thanks again for your suggested solution!
It did work 🙂Thanks,
May 29, 2016 at 8:12 am #92502SakinKeymaster@monicavilas: Nice 🙂
-
AuthorPosts
- The topic ‘Catch Base I Featured Slider – switching languages’ is closed to new replies.