Tagged: x
-
AuthorPosts
-
May 24, 2016 at 5:32 am #1006963This reply has been marked as private.May 24, 2016 at 7:48 am #1007148This reply has been marked as private.May 25, 2016 at 3:11 pm #1009741
Hi there,
It should be okay now, the new code is this
global $sitepress; if ( function_exists( 'icl_object_id' ) && is_callable( array( $sitepress, 'get_current_language' ) ) ) { foreach ( $x_content_dock_entries_include as $ID) { $post = get_post( icl_object_id( $ID, get_post_type(), false, $sitepress->get_current_language() ) ); $x_content_dock_entries_include[] = $post->ID; } }
But, you have layout issue due to the widget you added. For example,
<a href="https://de-de.facebook.com/morga.suisse" target="_blank"><strong><i class="x-icon-facebook-square" data-icon=""></i> morga Facebookseite <strong></a>
It should be like this,
<a href="https://de-de.facebook.com/morga.suisse" target="_blank"><strong><i class="x-icon-facebook-square" data-icon=""></i> morga Facebookseite </strong></a>
You have two
<strong>
without</strong>
Cheers!
May 25, 2016 at 3:57 pm #1009797Hello Rad
Thank you for your reply and the adjustment. Since the Content Dock now initially appeared on every page again, and we just would like to have it on the start pages, i went to the backend a few minutes ago and selected just the German Welcome page. Then the French Content Dock disappeared again. So i switched language to French, chose the French Welcome page (“Bienvenue”) and now the Content Dock is displayed on the French start page, but the German Content Dock is sticking at the bottom of the page (screenshot). I leave the Dock activated until tomorrow, so you can take a look at these two start pages:
French: http://www.morga.ch/fr/ (Content Dock on)
German http://www.morga.ch/ (Content Dock sticks to bottom of page)I do not know what is going on there. Could you please check it again?
Also thank you for your comment on the layout issue. I have closed the
<strong>
tag now.Thank you very much,
lypaMay 25, 2016 at 8:53 pm #1010249Hi there,
Ah, the content dock enqueues aren’t loaded since the code we applied is only local to \wp-content\plugins\x-content-dock\views\site\content-dock.php. I moved the code here /wp-content/plugins/x-content-dock/functions/options.php.
That should do it 🙂 Cheers!
May 26, 2016 at 12:06 am #1010455Hello Rad,
Yes, this is great. It is working now :).
Thank you very much!!
Kind Regards,
lypaMay 26, 2016 at 12:11 am #1010462We’re delighted to assist you with this.
Cheers!
-
AuthorPosts