Site logo

Archived topic

hide header element on mobile

5 replies · Started by fluidall on October 9, 2019

Viewing posts 1–6 of 6

Hello,
I want to hide one header element on mobile devices, and display it on desktop.

I want to display a different header element on mobile devices only.

What code should I add?

Thank you!

Hello,
the hide-on-mobile class works great for the one hero.

The other hero created will not show on any device. This is my code:

<div class="hide-on-desktop">
<a href="https://www.fluidall.com/awareness-month/" title="Breast Cancer Awareness"><img src="https://www.fluidall.com/wp-content/uploads/pink-ribbon-1-e1569617505540.png" alt="Breast Cancer Awareness" /><h2 style="font-size:30px;text-align: center;  margin: 0; vertical-align: middle;">Help us spread awareness during Breast Cancer Awareness month</h2></a>   
</div>

Can you offer any suggestions?

That code will need to be added in the same page hero.

Great, now I understand. I updated the one hero with (2) divs - one hide-on-mobile and one with hide-on-desktop. Works great! Thank you

No problem :)

This archived topic is closed to new replies.