New Landing How can we help? Cardinal Need an upper level

Viewing 4 posts - 1 through 4 (of 4 total)
  • Posted in: Cardinal
  • #142521
    nunomps
    Member
    Post count: 100

    Hi,

    One of the assets I’m using on the theme is giving me some problems and as such I’ve contacted their support. They helped me fix it a part of it, but the other part they said it has to be the theme support doing it ๐Ÿ™‚ Here is the email:

    Hello,

    it won’t be available for mobile devices.

    Because when placing the translator in a fixed position, it doesn’t know about the menu nor its size or position.

    The solution is to contact the author of the theme, tell them something like this:

    I need the body of the page to have a style class attribute when the menu switches to sticky mode. I see the resized-header class in the header wrapper, but I need it to be in an upper level, like the body main element.

    If they can do this, then I can setup the translator to be in the header for both desktop and mobile.

    Let me know…

    Cheers,
    Fred

    Help please ๐Ÿ™‚

    Thanks in advance,
    Nuno

    #142613
    Swift Ideas – Ed
    Keymaster
    Post count: 15264

    Hi Nuno,

    Try adding the following to the Custom JS box within Theme Options

    <script>
    jQuery('.sticky-header').on('sticky-start', function() {
    jQuery('body').addClass('header-is-sticky');
    });
    jQuery('.sticky-header').on('sticky-end', function() {
    jQuery('body').removeClass('header-is-sticky');
    });
    </script>
    

    – Ed

    #142734
    nunomps
    Member
    Post count: 100
    This reply has been marked as private.
    #142916
    laranz – SUPPORT
    Member
    Post count: 3186

    Hi,

    Can you try to remove the script tags alone? <script> and </script>

    Let us know,

    Thanks,
    laranz.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register