Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #526417

    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;
    }

    #526459

    Hi ckwellington!

    Add the following code :

    
    @media all and (max-width: 100px) ) {
     #header .widget {
    display: none;
    }
    }

    Best regards,
    Basilis

    #526480

    Thank you for the quick reply, but it didn’t work. I added it to Quick CSS.

    #526724

    Hi,

    Please try this instead:

    @media only screen and (max-width: 1000px) {
     #header .widget {
    display: none !important;
    }
    }

    Thanks,
    Rikard

    #528905

    That fixed it. Thank you!

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘Heading banner’ is closed to new replies.