Viewing 14 posts - 31 through 44 (of 44 total)
  • Author
    Posts
  • #1125966

    Hi,

    Thank you for the update.

    You can hide the full screen slider on mobile view in the element’s Screen Options, then use this css code to revert the top margin of the header back to default.

    @media only screen and (max-width: 767px) {
        #header {
            margin-top: 0; 
            background-color: #ffffff !important;
        }
    }
    

    Best regards,
    Ismael

    #1126034

    Thank you Ismael, it’s very nice of you to help me !
    I applied your solution but I would like to have my slider on mobile and my menu and logo above it.

    Your solution for my home in large screen is very good.

    If I suppress the function you give to me for my functions.php , mobile home is exactly like I want it to be but that disturbs my home on large screen.
    Do you have an idea to shutdown this function code for mobile ?

    Thanks in advance,

    Best Regards,

    Iceman

    • This reply was modified 5 years, 3 months ago by ICEMAN.
    #1126152

    Hey Ismael,

    I find a temporary solution. I use easy slider full width and hide it for large screen in the element’s Screen Options, so i have two slider, full screen slider for desktop and laptop and easy slider full width for mobile and tablette (portrait).

    But for my knowledge and to improve my experience enfold I would like to find a soution in order to use just full screen slider.
    So take a look to my previews message when I explain what I wuld like to have.

    Thanks in advance Ismael and have a good day !

    Regards,
    Iceman

    #1126245

    Hi,

    Sorry for the delay.

    You can set a condition to the script so that it is only executed on desktop but not on mobile devices.

    function ava_move_full_screen_slider_above_header(){
    	?>
    		<script type="text/javascript">
    		(function($) {
    			$(document).ready(function($){
    				var is_mobile = false;
    			
    				if($('.responsive #scroll-top-link').css('display')=='none') {
    					is_mobile = true;       
    				}
    			
    				if (!is_mobile) {
    					$("#main > .avia-fullscreen-slider").insertBefore("#header");
    				} 
    			});
    		})(jQuery);
    		</script>
    	<?php
    	}
    
    	add_action('wp_footer', 'ava_move_full_screen_slider_above_header');
    
    

    Best regards,
    Ismael

    #1126329

    Ok, perfect, thank you Ismael, it’s very nice of you.

    You can close the topic.

    Have a good evening !

    Best Regards,
    Iceman

    #1126874

    Hi Iceman,

    Glad Ismael could help :)

    If you need further assistance please let us know.
    Best regards,
    Victoria

    #1140436

    Hello to all !

    I come back about this post, I applied Ismael solution and it works well exept for a detail: on mobile view, the slider exceeds the size of the screen. So for the moment, I keep the solution of 2 sliders for my home (one for large screen and one for mobile screen) but it’s not a good solution because my page weight is huge because of the loading of 2 sliders.

    So I create a test page to move the size slider problem, you can see it in private content.

    In the same time, if it’s possible to keep the solution with two sliders (that works perfectly) for my home, I would need to ban the loading of the mobile slider on computer and vice versa because hide slider on large screen does not prevent the loading of it and google load 2 sliders in the same time and it’s bad for SEO and user experience.
    ( I create another topic for this specific problem: 2 different sliders, one for mobile and one for computer screen.)

    Thanks for help,

    Regards,

    Iceman

    • This reply was modified 5 years, 1 month ago by ICEMAN.
    #1141124

    Nobody can help ?

    #1141298

    Hi,

    Sorry for the delay.

    Did you remove the script above? We don’t see a second slider on mobile view and the current slider always render above the header.

    The thread is getting quite long and off the original topic. Please create a new ticket and include the necessary details in the private field.

    Best regards,
    Ismael

    #1141332

    Hi Ismael, You can close the topic. I will open a new one.
    Regards,
    Iceman

    #1141788

    Hi Iceman,

    Glad you got it working for you! :)

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #1141794

    Thank you Viictoria, it’s nice of you, you can close this opic because I open a new one Full screen slider display

    Thanks to all for helping !

    #1141970

    Hi ICEMAN,

    Ok, I am closing this topic.

    Best regards,
    Victoria

    #1141973

    Hi ICEMAN,

    Best regards,
    Victoria

Viewing 14 posts - 31 through 44 (of 44 total)
  • You must be logged in to reply to this topic.