Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #994408

    Hi,

    I want to have the sidebar appear on top of the page, right under the Fullwidth Easy Slider element. I saw a comment on this thread by Victoria. I tried her code which I copied to this thread down below:

    @media only screen and (max-width: 786px) {
    	.container {
    		display: flex!important;
    		flex-direction: row;
    		justify-content: space-between;
    		flex-wrap: wrap;
    	}
    
    	/* Sidebar */
    	#top .container aside {
    		order: 1;
    		flex-grow: 1;
    	}
    
    	/* Main Content */
    	#top .container main {order: 2;flex-grow: 1;}
    }

    This code works, but if I have the Fullwidth Easy Slider element on top of the page, then this code does not work. The sidebar is then displayed on the bottom of the page. So how can I have the sidebar displayed right under the Fullwidth Easy Slider element on mobile view?

    Example of the mobile structure that I want to be displayed on the site:

    ——–Header navigation——–
    ——–Fullwidth Easy Slider (Image)——–
    ——–Sidebar——–
    ——–Content——–

    Thank you!

    #994492

    bump

    #994731

    Hi,

    Could you post a link to the page in question so that we can take a closer look please?

    Best regards,
    Rikard

    #994980

    Private Content

    #995453

    Hi kevinjd91,

    Best regards,
    Victoria

    #995610

    Hey Victoria,
    Sorry, my bad. It should be up now.

    #996450

    Hi kevinjd91,

    Here is the code you can put in Enfold > General Styling > Quick Css,  if it does not work, put into themes/enfold/css/custom.css

    
    
    @media only screen and (max-width: 479px) {
        #full_slider_1, 
        #full_slider_1 .av_slideshow_full.avia-slideshow,
        #full_slider_1  .avia-slideshow-inner,
        #full_slider_1 .avia-slideshow li,
        #full_slider_1 .avia-slideshow li img {
          min-height: 200px;
        }
        #full_slider_1 .avia-slideshow li img {
          width: 180%;
        }
    }
    
    @media only screen and (max-width: 786px) {
    	#after_full_slider_1 .container {
    		display: flex!important;
    		flex-direction: row;
    		justify-content: space-between;
    		flex-wrap: wrap;
    	}
    
    	/* Sidebar */
    	#top .container aside {
    		order: 1;
    		flex-grow: 1;
    	}
    
    	/* Main Content */
    	#top .container .content {order: 2;flex-grow: 1;}
    }
    

    If you need further assistance please let us know.

    Best regards,
    Victoria

    #996465

    Hey Victoria,
    It works now! I really appreciate your time and help. Thank you very much! :)

    #996528

    Hi,

    Great, glad you got it working :-)

    Please let us know if you should need any further help on the topic or if we can close it.

    Best regards,
    Rikard

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