Digital experiences for all disciplines
New Landing › How can we help? › Cardinal › Contact Slideout Page / multilingual (using wpml)
New Landing › How can we help? › Cardinal › Contact Slideout Page / multilingual (using wpml)
- This topic has 12 replies, 4 voices, and was last updated 9 years by Kyle – SUPPORT.
-
Posted in: Cardinal
-
January 20, 2015 at 9:26 am #142602
Hi,
I have an issue with the Contact Slideout Page.
What should I do display it with a different languages when switching the language.I am using WPML – when selecting the slideout page in the Header Options (for one of the languages), it sets this as the main slideout page for every language.
Thanks for your support!
January 20, 2015 at 10:54 am #142651Hi,
Can you check your site, at the moment you have an error that it seems that the file functions.php is not complete. Try to upload the file again.
-Rui
January 20, 2015 at 7:04 pm #142815Did a restore from my backup – the site is working.
January 21, 2015 at 2:59 pm #143120Hi,
I checked and can only see the German version of the contact slideout page.
Will have to forward this topic to the development team to see what can be done.Let’s wait for the reply.
Thanks-Rui
January 22, 2015 at 11:02 am #143364Hi yildirim.reisen
Just double checked the code and the theme is definitely set up to allow for multiple pages to be set here, you just need to check in WPML translation options for “$sf_options[‘contact_slideout_page’]” – it won’t work the same way as having a version of each page, you need to specify the page ID for each language in the WPML translation options.
Hope that helps.
– Ed
January 29, 2015 at 4:13 pm #145487Hi Ed,
sorry for the late reply – i have tried several things but it don’t work.
I could not found anything like “$sf_options[‘contact_slideout_page’]” in the WPML options.
To set (automatically) different page ID’s there is an option in WPML – it is checked.
Do I overlooked something?
Thank you!
January 30, 2015 at 11:24 am #145726I’ll get WPML to check this out – they are currently reviewing the theme for any WPML issues.
Odd that it’s not showing though, it’s set up correctly from what I can see.
– Ed
March 17, 2015 at 9:19 pm #158386Hi Ed,
can you take a look at the slideout on that link:
https://www.yildirim.reisen/forums/forum/feedback-vorschlaege/
When I disable the main WMPL-Plugin everything is fine.
Thanks
HüseyinMarch 18, 2015 at 2:26 pm #158691Hi there,
Have you got a child theme active? Try adding this function to the child theme functions.php –
if ( ! function_exists( 'sf_contact_slideout' ) ) { function sf_contact_slideout() { global $sf_options; $contact_slideout_page = __( $sf_options['contact_slideout_page'], 'swiftframework' ); $contact_slideout = ""; $contact_slideout .= '<div id="contact-slideout">'; $contact_slideout .= '<div class="container">'; if ( $contact_slideout_page ) { $page = get_post( $contact_slideout_page ); $content = apply_filters( 'the_content', $page->post_content ); $contact_slideout .= do_shortcode($content); } else { $contact_slideout .= __( "Please select a page for the Contact Slideout in Theme Options > Header Options", "swiftframework" ); } $contact_slideout .= '</div>'; $contact_slideout .= '</div>'; return $contact_slideout; } }
For some reason, it looks like WPML is causing the shortcodes not to get processed.
– Ed
March 18, 2015 at 10:23 pm #158823This reply has been marked as private.March 19, 2015 at 1:46 am #158864That’s an issue with WPML – you’ll need to take that up with their support team.
– Ed
March 30, 2015 at 11:39 am #161848Hi Ed, thank you for the code!
Just to let you now..
This is what came from the WPML support:
Hello and thank you for contacting WPML support!!
This issue is already fixed but fix will be made available in next future release of WPML v3.2. Can you please wait a little more and upgrade your WPML plugin when we officially release it. You should keep your eyes on our blog for latest updates.
=> http://wpml.org/blog/Thank you for your patience.
March 30, 2015 at 11:43 am #161854Ok great, thanks Ed
-
Posted in: Cardinal
You must be logged in and have valid license to reply to this topic.