-
AuthorPosts
-
January 21, 2020 at 3:31 pm #1176779
Hello,
I would like to create a sitewide notification and used these instructions to do it:
But it cuts out at small screen sizes. How do I adjust it so it is visible on phones and small screens?
Thank you!
January 21, 2020 at 3:36 pm #1176782Hey,
Could you please post a link to your website where we can see the issue? :)
Best regards,
YigitJanuary 21, 2020 at 5:53 pm #1176863Unfortunately our site is not live yet, but basically the alert shows on tablet-sized horizontal oriented screens or larger, but not on vertically oriented screens or phones. There must be a way to specify that the alert should show on all screen sizes?
Here is a screen shot:
https://ibb.co/HPW0j85
https://ibb.co/S7NDV9wAnd here is the css that I used (from this page https://kriesi.at/documentation/enfold/notification/:
/*—————————————-
// CSS – Sitewide Notification
//————————————–*/
#header .widget {
overflow: visible!important;
position: absolute!important;
display: block!important;
background: gold;
line-height: 30px;
padding: 0;
margin: 0;
z-index: 99999;
padding-top: 0;
position: absolute;
top: 0;
left: 0;
right: 0;
max-height: 30px;
z-index: 9999;
}
#header .widget .avia_message_box.sitewide {
padding: 0;
margin: -30px;
}#header {
margin-top: 30px;
}
@media only screen and (max-width: 767px) {
.responsive #top #wrap_all #header {
margin-top:30px!important;
}}#header .widget .avia_message_box.sitewide:before,
#header .widget .avia_message_box.sitewide:after {
content:”;
width: 100vw;
height: 100%;
top:0;
background: #00a0af;
position: absolute;
z-index: -1;
}
#header .widget .avia_message_box.sitewide:before {
left: 0;
}
#header .widget .avia_message_box.sitewide:after {
right: 0;
}January 22, 2020 at 8:46 pm #1177271Hi lle-it,
We need to see the actual css and html to be able to propose a solution for you. Please get back to us when you get the website to some testing server.
Best regards,
Victoria -
AuthorPosts
- You must be logged in to reply to this topic.