Site logo

Archived topic

Sticky menu just for a specific language

5 replies · Started by Antwan on December 11, 2017

Viewing posts 1–6 of 6

Hello,

I'm using WPML on a GP-installation. The site in the original language is fine the way it is, but for the additional language I'm using a specific page-template with a custom (Max mega-) menu. I would like the menu in the original language to be non-sticky, and provide the other language with a sticky menu. Would this be possible?

Thanks in advance,

Antwan

Hi there,

We can try a CSS solution for that.

I can't find where to switch to another language though. Need to find a unique class in there.

Can you guide me through?

Thanks!

Hi Leo,

The language-version is heavily under construction. My tryout-page is to be seen here: https://stadtteilweb.de/ls/mitmachen/

The language-selector in the url is 'ls' and the header, footer and page elements have a specific class "access" added to them. Or do you think this extra class isn't necessary?

Thanks a bunch,

Antwan

So just to confirm. On that page you want the sticky navigation?

If so, activate it in the customizer, then try this CSS to disable it on normal page:

body:not(.page-template-page-ls) .main-navigation.navigation-stick {
    display: none;
}

Yep, you're right. Initially it didn't work, but adding !important to the code did the trick. Thanks!

No problem!

This archived topic is closed to new replies.