-
AuthorPosts
-
February 8, 2018 at 4:45 pm #909828
Hi,
I’d like to have the mobile menu activated for smartphones and tablets on a browser width below 1040px. Currently I only have the option for below 990px. Could you provide some code for that please?
Also, I’d like to have the screen option in the Video element to enable visibility between 990px and 1040px. And in the Easy Slider element, the screen option to hide visibility between 990px and 1040px. How can i do this? All help much appreciated.
Thanks,
Del
February 9, 2018 at 5:13 am #910104Hey goingthewholehogg,
Let’s stick to one problem at a time, please try this in Quick CSS to change the mobile menu breakpoint:
@media only screen and (max-width: 1040px) { nav.main_menu { display: block !important; } #avia-menu .menu-item { display: none; } .av-burger-menu-main.menu-item-avia-special { display: block; } }
Best regards,
RikardFebruary 9, 2018 at 5:23 am #910108That’s great Rikard, thanks!
Just tried that and it works perfectly.
Just the video and easy slider elements one now.
Thanks,
Del
February 10, 2018 at 7:05 pm #910610Hi,
If I understand correctly you would like to hide the video element in the 1/2 column on your homepage under 990px, in doing so it leaves the other 1/2 column to the right. So in this code, we will hide the video & make the other 1/2 column full width:@media only screen and (max-width: 990px) { #top.home .avia-builder-el-2 {display:none !important; } #top.home .avia-builder-el-5 {width: 100% !important; margin-left: 0px !important; } }
Then you wanted to hide the slider between 990px and 1040px:
@media only screen and (min-width: 990px) and (max-width: 1040px) { #top.home #fullscreen_slider_1 {display:none !important; } }
Best regards,
MikeFebruary 11, 2018 at 4:14 am #910713Hi Mike
Thanks for your reply. I think that’s half right – on the homepage I’m looking to hide the video element above 1040px, and we want to hide the slider below 1040px.
I’ll have this same set up on various pages/posts – I’m essentially wanting my videos to autoplay via the slider on screens above 1040px, but just use the normal video element for all screens below 1040px. So, code that will make the changes for these elements across the site (not just for the homepage) would be ideal.
We’ve gone live with the site now, just so you know!
Thanks
Kim
February 11, 2018 at 4:47 pm #910760Hi,
So I understand that my assumption about hiding the 1/2 column that the video is in, and making the 1/2 column with the text full width, is the correct approach.To make your changes site wide the best approach would be to add custom classes to the elements, so for all of the videos add the same class to the 1/2 column that the video is in, and another class for all of the columns that the text is in.
For example use “1014video” for the video columns & “1040text” for the text columns
Then this css will work for all of the pages and not conflict with other elements now or future.@media only screen and (min-width: 1040px) { .1040video {display:none !important; } .1040text {width: 100% !important; margin-left: 0px !important; } }
Then for the slider follow the same principal and add a custom class such as “1040slider” and use this css:
@media only screen and (max-width: 1039px) { .1040slider {display:none !important; } }
Best regards,
MikeFebruary 12, 2018 at 4:59 am #910892Hi Mike
Thanks for your reply. So, I’ve tried adding the CSS from your original reply, plus the new CSS and the custom classes to the 1/2 elements. This removed the video completely from my small screen devices below 990px, and didn’t appear to change anything on my 1040px screen device. It still just shows the backup photo from the slider element as it can’t display the auto-play video.
I don’t have 1/2 container elements on the other post where I’m trying to display videos in the same way, just the video and slider elements themselves. I added the custom class to the elements themselves, but again no change. ( the Saryangdo hike post). Should I add the elements into a 1/1 container and add the class to the container?!
I’ve removed the original CSS for now so that I got my video displaying on small screens again. I’m a bit confused as to whether I did it right, or maybe need to try some different code?
Feel free to take a look at the backend if it’s easier – info in the private field. We’re live now so can view front end without logging in.
Thanks,
KimFebruary 12, 2018 at 1:24 pm #911091Hi,
Ok, so I had misunderstood which slider we wanted to hide, I thought it was the top one, but turns out it is in the 1/2 column. So forget the whole 1/2 column text being full width thing :)
So this is the code I added:@media only screen and (min-width: 1040px) { .homevideo {display:none !important; } } @media only screen and (max-width: 1039px) { .homeslider {display:none !important; } }
and I renamed your homepage elements & the Saryangdo hike post elements and unchecked the screen options for the elements, and cleared all 3 caches!
Now the video in the slider auto plays for desktops & the video element shows for tablets and mobile.
Please clear your browser cache and check.Best regards,
MikeFebruary 12, 2018 at 3:19 pm #911126Thanks Mike,
Everything’s working perfectly now. Thanks for your help on this and all the rest too. The support’s been excellent.
You can close the topic now. Thanks again,
Kim
February 12, 2018 at 8:44 pm #911331Hi,
Glad we could help!
Please take a moment to review our theme and show your support https://themeforest.net/downloads
To know more about enfold features please check – http://kriesi.at/documentation/enfold/
Thank you for using Enfold :)Best regards,
BasilisFebruary 12, 2018 at 8:44 pm #911332Hi,
Best regards,
Basilis -
AuthorPosts
- The topic ‘Changing mobile menu browser width and screen options for video elements’ is closed to new replies.