Hello,
I added a banner by adding a widget to child functions.php and using css from a forum solution. However, I do not want the banner on mobile devices under 1000px wide.
Script: /* Add banner to top */
add_action( ‘ava_main_header’, ‘enfold_customization_header_widget_area’ );
function enfold_customization_header_widget_area() {
dynamic_sidebar( ‘header’ );
}
css: #header .widget {
left: 38%;
padding-top: 0px;
position: absolute;
top: 0;
}
Hi ckwellington!
Add the following code :
@media all and (max-width: 100px) ) {
#header .widget {
display: none;
}
}
Best regards,
Basilis
Thank you for the quick reply, but it didn’t work. I added it to Quick CSS.
Hi,
Please try this instead:
@media only screen and (max-width: 1000px) {
#header .widget {
display: none !important;
}
}
Thanks,
Rikard
That fixed it. Thank you!