[Resolved] Sticky menu just for a specific language

Home Forums Support [Resolved] Sticky menu just for a specific language

Home Forums Support Sticky menu just for a specific language

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #446928
    Antwan

    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

    #447029
    Leo
    Staff
    Customer Support

    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!

    #447036
    Antwan

    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

    #447052
    Leo
    Staff
    Customer Support

    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;
    }
    #447062
    Antwan

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

    #447157
    Leo
    Staff
    Customer Support

    No problem!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.