Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #393602

    Hello,
    i use links in the main-menue to id’s at my startpage – it works fine at startpage.
    But after calling a subpage, the links (e.g. “ID1”) doesnt work – it is clear.
    Then I set the link to id’s with page-call like “/landingpage/#ID1”. That works fine from subpages, but the scroll-effect on startpage is lost. Furthermore the startpage will be reloaded after activate a link to id within itsself.
    The requirement is now, to use different links to id’s to startpage in the main-menue from start-page (ref=”#ID1″) and all subpages (ref=”/landingpage/#ID1″).
    Can I do this on server-side (php?) or only with jQery on client-side?
    Best Regards
    Dirk

    #393878

    Hey Dirk!

    Try this plugin out, https://wordpress.org/plugins/zen-menu-logic/. It sounds like you want to create two menus. One for your regular site and another for just your homepage.

    Best regards,
    Elliott

    #394248
    This reply has been marked as private.
    #394706

    Hey!

    So you need to change the menu for each language and also if it’s the homepage? I’m not sure about this. It looks like WPML should load the correct menu if it is translated, http://wpml.org/documentation/getting-started-guide/translating-menus/. I would try contacting WPML support about this to see if they have any suggestions.

    I suppose you could try doing this, https://kriesi.at/support/topic/creating-a-custom-templatemenu/#post-372799, and then use the is_home() conditional to switch the menu also.

    Cheers!
    Elliott

    #394878

    Hey,
    this entry works but it switch not the main-menue of the second language (englisch).
    ‘menu’ => ( is_page(321) ? ‘special’ : null ),

    The special menu for the hompage exists in both languages and I assigned these to the homepage for each language. If I change the language on other pages (e.g. PRODUCT PORTFOLIO / Spa Themed Treatments) and return to hompage (over Logo-Link) the correct menu will be shown.
    There are two items to clear
    1. language-select-buttons on the main-menu of hompage will be not shown
    2. link to hompage-ID from subpages don’t use the language in URL

    I think, these are difficult points, but I hope, we resolve them. :-)

    Best Regards
    Dirk

    #395350

    Hi!

    I can’t think of a way to do that. I would try contacting WPML support to see if they have an idea on what you could do.

    Best regards,
    Elliott

    #404617

    Hi Elliott,

    good news. I’ve had resolves these two items myself.
    1. The WPML offer a setting for show the language-buttons in a one named menue. I choose my second menue for the frontpage and it works.
    2. I’ve had edit the link in the main-menue with language parameter like this: /frontpage/?lang=en#produkte It works because one menue is for one language.

    Thankyou very much for your support
    Dirk

    #405011

    Hey!

    Glad you got your problem solved :)

    Regards,
    Rikard

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Main menue – different links in pages’ is closed to new replies.