Hello ![]()
It’s possible but it depends lot of thing. Can you share your site url?
I would use plugin outlet and put the banner inside. Set the plugin-outlet height equal with banner height, it will add the necessary spaces.
Something like this. Note: This is just a quick example, I hope it will add some idea for you to achieve it. We can do more if you share more info and your site url to check this etc… ![]()
Mobile / Header
<script type="text/x-handlebars" data-template-name="/connectors/above-site-header/top-banner">
<div class="test-top-banner"></div>
</script>
<script type="text/x-handlebars" data-template-name="/connectors/below-footer/bottom-banner">
<div class="test-bottom-banner"></div>
</script>
Mobile / CSS
body {
--banner-height: 40px;
.d-header-wrap {
top: var(--banner-height);
}
.above-site-header-outlet.top-banner {
@include sticky;
top: 0;
width: 100%;
height: var(--banner-height);
z-index: z("header");
.test-top-banner {
width: 100%;
height: var(--banner-height);
background: red;
}
}
.below-footer-outlet.bottom-banner {
@include sticky;
bottom: env(safe-area-inset-bottom);
width: 100%;
height: var(--banner-height);
z-index: z("header");
.test-bottom-banner {
width: 100%;
height: var(--banner-height);
background: red;
}
}
#topic-progress-wrapper:not(.docked) {
margin-bottom: var(--banner-height);
}
}