-
AuthorPosts
-
February 10, 2015 at 11:07 am #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
DirkFebruary 10, 2015 at 6:57 pm #393878Hey 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,
ElliottFebruary 11, 2015 at 12:13 pm #394248This reply has been marked as private.February 11, 2015 at 10:05 pm #394706Hey!
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!
ElliottFebruary 12, 2015 at 10:44 am #394878Hey,
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 URLI think, these are difficult points, but I hope, we resolve them. :-)
Best Regards
DirkFebruary 12, 2015 at 9:26 pm #395350Hi!
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,
ElliottMarch 2, 2015 at 5:40 pm #404617Hi 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
DirkMarch 3, 2015 at 9:21 am #405011 -
AuthorPosts
- The topic ‘Main menue – different links in pages’ is closed to new replies.