Navigation
This is archived content. Visit our new forum.

Tagged: 

  • Author
    Posts
  • #1006963

    Jack
    Keymaster
    This reply has been marked as private.
    #1007148

    lypa
    Participant
    This reply has been marked as private.
    #1009741

    Rad
    Moderator

    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>&emsp;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>&emsp;morga Facebookseite
    </strong></a> 

    You have two <strong> without </strong>

    Cheers!

    #1009797

    lypa
    Participant

    Hello 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,
    lypa

    #1010249

    Rad
    Moderator

    Hi 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!

    #1010455

    lypa
    Participant

    Hello Rad,

    Yes, this is great. It is working now :).

    Thank you very much!!

    Kind Regards,
    lypa

    #1010462

    Friech
    Moderator

    We’re delighted to assist you with this.

    Cheers!