How can I modify the header and announcement bar height on Debutify theme?

Hi all,

I need advice on how to make changes to the header and announcement bar height on debutify theme.

I want to make the heights smaller on mobile, I also want to move my logo from centre to being positioned on the left hand side on mobile.

site: www.buydigi.com.au

@Nickloz

Unfortunately, there is no simple solution for this. It would need customization.

@Nickloz

sorry for that issue

i can’ see this view

what do you need?

@Nickloz by left-hand side, I’m assuming you want the logo right next to the menu button, is that correct?

In that case, you can add this code at the end of your CSS file (ThemesEdit codeAssetstheme.scss.css):

@media screen and (max-width: 769px) {
  .header-grid .grid__item:first-child {
      width: auto !important;
  }
}

@g33kgirl thank you so much for that it worked!

@Nickloz glad it worked! Please accept my answer as the solution.

@KetanKumar I want to make the height of the announcement bar and the height of the header smaller on mobile (highlighted by the red lines). But I don’t want them to change when on desktop view.

@Nickloz

Please add css code your css file .

@media screen and (max-width: 769px){
.site-header {height: 40px !important;}
}

Thanks!

@dmwwebartisan thank you, the header size has decreased but the announced bar at the top (blue) has stayed the same. Is there any code I can put in so I can reduce the size of that too or edit it to whatever I like?

@Nickloz

Please add this css

@media screen and (max-width: 769px){
.announcement-section .wrapper {position: relative;}
#announcement .rte {margin-bottom: 10px;}
#announcement {  height: 25px;}
}

@dmwwebartisan thank you so much for that, you’ve been a great help! Lastly, do any values in that code change the announcement bar font size? or will I need another piece of code for that (mobile only).

@Nickloz

Add this code

@media screen and (max-width: 769px){
#announcement p {font-size: 12px !important;}
}

@g33kgirl I’ve recently updated my logo to a vector file and I love the way it’s looking now, but the logo is now skewed to the right a bit, can I update the code you provided me to push it a bit more to the left?

@Nickloz you can add this code to your CSS file:

@media screen and (max-width: 769px) {
.site-header__logo .mobile-logo {
    margin-left: -15px;
 }
}