Fullscreen hides behind other parts of the site.

info's Avatar

info

08 Feb, 2017 05:46 PM

Hi,

Lovely slider. Thanks

But the full scree hides behind other elements of the site. See http://jesszoob.wpengine.com/collection-test

Many thanks

  1. Support Staff 1 Posted by Dmitry Semenov on 08 Feb, 2017 07:13 PM

    Dmitry Semenov's Avatar

    Hello,

    Here is a similar issue http://help.dimsemenov.com/discussions/royalslider-wordpress/5677-f...

    Since both footer and header overlap slider, you need to hide both:

    // Add this to your theme functions.php
    function add_additional_rs_code() {
        ?>
    
        var sliderInstance = $('.royalSlider').data('royalSlider'); 
        sliderInstance.ev.on('rsEnterFullscreen', function() {
            $('#footer-outer, #header-outer').hide();
        });
        sliderInstance.ev.on('rsExitFullscreen', function() {
            $('#footer-outer, #header-outer').show();
        });
    
        <?php
    }
    add_action('new_rs_after_js_init_code', 'add_additional_rs_code');
    

    Modify #footer-outer, #header-outer part if you want to hide some other elements while in fullscreen.

  2. 2 Posted by info on 10 Feb, 2017 09:30 AM

    info's Avatar

    Hi,

    Thanks, works a bit better. But still shows overlay.

    I want to hide all elements while in full screen as thats what full screen is.

    please advise.

  3. 3 Posted by info on 10 Feb, 2017 11:00 AM

    info's Avatar

    how you you get out of full screen mode on a mobile please?

  4. Support Staff 4 Posted by Dmitry Semenov on 10 Feb, 2017 05:47 PM

    Dmitry Semenov's Avatar

    Thanks, works a bit better. But still shows overlay.

    I don't see the code from previous message on the page that you linked. Please add it and provide a screenshot of element that you wish to hide.

    how you you get out of full screen mode on a mobile please?

    The same way as on desktop - via an icon in top right corner.

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac