tuanphan Posted August 5 Share Posted August 5 If you can't make it work, you can send site url, I will check again. #1. To add a non-clickable text to top of header, you can use this code to Custom CSS box header#header:before { content: "Add something here"; display: block; text-align: center; font-size: 16px; margin-top: 10px; margin-bottom: 10px; } Result #2. To make this text appears on One Page only. First, you need to find Page ID. Use below tool. In my example, we will have: #collection-66aef2caff007776a825a948 Next, use this CSS code body:not(#collection-66aef2caff007776a825a948) header#header:before { display: none !important; } #3. To make text appears on Mobile only, use this CSS code @media screen and (min-width:768px) { header#header:before { display: none !important; } } #4. To make text appears on Desktop Only, use this CSS code @media screen and (max-width:767px) { header#header:before { display: none !important; } } Email me if you have need any help (free, of course.). Answer within 24 hours. Or send to forum message Contact Customer Care - Learn CSS - Buy me a coffee (thank you!) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment