Hide the Divi Search Icon on Mobile Devices

This post may contain referral links which may earn a commission for this site

If enabled, the Divi Theme displays the search icon (a magnifying glass) in the header bar on all devices. If you want it to appear only on larger devices, not mobiles, you can hide it from mobiles in the following way:

@media only screen and ( max-width: 980px ) {
    #et_top_search { display:none; }
}

Hundreds of new features for Divi
in one easy-to-use plugin

2 Comments

  1. Thank you for this!! My header image was pushing the search icon and menu icon to the next line. I changed the max-width to 500px. That way I get the search icon in landscape mode but it is hidden in portrait.

    Thanks, again!!

    Reply

Submit a Comment

Your email address will not be published. Required fields are marked *