Reduce height of header and announcement bar impact theme

Solved

Reduce height of header and announcement bar impact theme

noosathletics
Excursionist
15 0 4

Hi all,

 

I'm trying to reduce my announcement bar and header height so that my product page is better visible. This is what it currently looks like:

 

Screenshot 2025-04-04 at 14.21.27.png

 

This is what I'm trying to achieve:

Screenshot 2025-04-04 at 14.21.21.png

 

Also, I would like to reduce the spacing between sections. Could someone assist me on this as well?

 

website: www.noosathletics.com

Theme: impact

 

Thanks!

Accepted Solution (1)
Moeed
Shopify Partner
7362 1994 2433

This is an accepted solution.

Hey @noosathletics 

 

Keep the previous code and add this new code above </style> in the end of theme.liquid file

.product-info>*+* {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

RESULT:

Moeed_0-1743774373991.png

 

If I managed to solve your problem then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


View solution in original post

Replies 5 (5)

Moeed
Shopify Partner
7362 1994 2433

Hey @noosathletics 

 

Follow these Steps:

1) Go to Online Store
2) Edit Code

3) Find theme.liquid file

4) Add the following code in the bottom of the file above </body> tag

<style>
.header__wrapper {
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}
.announcement-bar.bg-custom.text-custom {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
}
</style>

RESULT:

Moeed_0-1743769678804.png

 

If I managed to solve your problem then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


noosathletics
Excursionist
15 0 4

Hi Moeed, 

 

It did answer the first part of my question. Could you also help me with the second: 

Also, I would like to reduce the spacing between sections. Could someone assist me on this as well?

 

Thank you!

 

Moeed
Shopify Partner
7362 1994 2433

This is an accepted solution.

Hey @noosathletics 

 

Keep the previous code and add this new code above </style> in the end of theme.liquid file

.product-info>*+* {
    margin-top: 8px !important;
    margin-bottom: 8px !important;
}

RESULT:

Moeed_0-1743774373991.png

 

If I managed to solve your problem then, don't forget to Like it and Mark it as Solution!

 

Best Regards,
Moeed

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications


noosathletics
Excursionist
15 0 4

Definitely! Thanks man!

Moeed
Shopify Partner
7362 1994 2433

Thank you for your reply. I'm glad to hear that the solution worked well for you. If you require any more help, please don't hesitate to reach out. If you find this information useful, a Like would be greatly appreciated.

- Need a Shopify Specialist? Chat on WhatsApp

- Get a quick Shopify quote – Click here!

- Custom Design | Advanced Coding | Store Modifications