Tagged: x
-
AuthorPosts
-
May 15, 2016 at 4:45 pm #992623
Dear Support team,
I have made a teaser for my start page on http://www.morga.ch using the content dock extension (it is currently hidden, but pls see screenshots from staging site attached below). The content dock is only showing in the German version, though i have set up 2 instances of the “Multilingual text” widget in the backend, one for German and one for French.
How can i make the content dock also appear in the french version of our site?
Kind Regards,
lypaMay 15, 2016 at 9:54 pm #992945Hello Lypa,
Thanks for writing in! To make sure that Content Dock will display site wide, you must select all pages/posts in the include field in the setting, X Addons > Content Dock > Settings (http://prntscr.com/b4jeqj).
The content dock will only display on the page/post you have selected and will not load to those pages that is not being selected. Hope this helps.
May 16, 2016 at 4:34 am #993257Hi Rue
Thank you for your reply. Yes, i have tried that, but the French Welcome page does not appear in the selection when i am in the German language version of my site and vice versa. I can just select either the page “Willkommen” when i am in German mode in the backend, or the page “Bienvenue” when i am in the French mode of the site in the backend.How can i make all pages of all languages appear in this select box you showed me on your screenshot in the content dock Settings?
Kind Regards
LypaMay 16, 2016 at 7:04 am #993430Hi there,
Would you mind providing us with login credentials so we can take a closer look? To do this, you can make a post with the following info:
– Link to your site
– WordPress Admin username / passwordDon’t forget to select Set as private reply. This ensures your information is only visible to our staff.
Thanks.
May 16, 2016 at 7:15 am #993439This reply has been marked as private.May 17, 2016 at 8:27 am #995389Hi there Lypa,
Thanks for writing back!
I’ve taken a look at this on your site and my own development install. After testing this seems to be a incompatibility between Content Dock and WPML, mostly down to how WPML handles the pages in differnt languages.
I’ve added this as a Feature Request in our internal system for managing these types of issues. For now if you switch between languages and choose the correct pages, does it still not show on those pages correctly?
Thank you!
May 17, 2016 at 10:55 am #995696Dear Jack
Thank you very much for helping and checking this issue.
Yes, if i have the Content Dock displayed on the German start page and then switch from German to French and choose the French start page there, it goes missing on the German Start page, but shows on the French start page (screenshots).
So i can only display it either for the German version or for the French version at the moment. But i need to show it on both start pages.
So what could i do?
Kind Regards,
lypaMay 18, 2016 at 2:57 pm #998008Hi there,
I’m not sure if this one will work, but you can try this out. With your FTP or File manager, go to this folder \wp-content\plugins\x-content-dock\views\site and edit this file content-dock.php
Then replace this line of code
if ( is_page( $x_content_dock_entries_include ) || is_single( $x_content_dock_entries_include ) ) :
with this new code
if ( function_exists( 'icl_object_id' ) && is_callable( array( $sitepress, 'get_current_language' ) ) ) { $post = get_post( icl_object_id( $x_content_dock_entries_include, get_post_type(), false, $sitepress->get_current_language() ) ); $x_content_dock_entries_include = $post->ID; } if ( is_page( $x_content_dock_entries_include ) || is_single( $x_content_dock_entries_include ) ) :
Let me know 🙂
May 21, 2016 at 11:28 am #1003053Dear Rad,
Thank you very much for helping :). I managed to apply the code now, and the content dock teaser appears on all French and German pages now.
Is it possible to have it only displayed on the 2 start pages (French and German)?
Kind Regards,
lypaMay 21, 2016 at 7:52 pm #1003394Hi there,
I think you can choose the page on your content dock settings and include those pages. Please note that you don’t need to include the exact page, you can just include the translation equivalent of that page. For example, include the assortment page in English, that will also include the assortment page in French automatically.
Thanks!
May 22, 2016 at 5:52 am #1003739Dear Rad,
Thank you for your reply. I followed your advice choosing only the “Welcome” page. Unfortunately, choosing this page made everything fall back to the old behaviour again: I chose the German “Welcome” page, and the Content Dock now is only displayed there. But it is missing again on the French start page, though the new php code you gave me is still applied (i checked it on the server).
Why is this and what can i do?
Kind Regards,
lypaMay 22, 2016 at 4:30 pm #1004150Hi there,
Would you mind providing your FTP login credentials as well? I like to check it directly, maybe I can find something there.
Thanks!
May 22, 2016 at 8:56 pm #1004448This reply has been marked as private.May 22, 2016 at 10:37 pm #1004532Hi there,
I’m able to connect but authentication fails. Please check again, but if you have CPanel or any file manager, then that’s okay too 🙂
Thanks!
May 23, 2016 at 6:33 am #1005015This reply has been marked as private. -
AuthorPosts