Storefront can be a great theme, but it comes with some hard-coded features, I personally don’t like. One of them is the huge padding around the header. I like headers to be rather slim and less “in your face”.
The setup used in this post is the Storefront Theme and the Storefront Designer extension. The designer adds features to the header settings, which I used to align the menu right of the site title.
Inspecting the element in my browser, I can see that the element has the id masthead and the class site-header. These will probably be the two CSS items I need to work on.
So I take a closer look at the styles loaded for this particular element. What I find scrolling down, is the ‘padding-bottom’ and a bit further down the ‘padding-top’ of each 2.618em. Another interesting item is the “.sd-header-sticky.admin-bar .site-header” which has a ‘top’ of 32px. Setting either the ‘padding-top’ or the ‘top’ 32px to 0 both show me the desired results on my screen. So I will try adding custom CSS setting to change the menu.
I always use the Plugin Simple Custom CSS and JS. You can easily enter CSS as well as Javascript, sort it by giving each configuration different names and mostly you have different options to determine when it’s being loaded.
In this case, I had to play with the different options and naming conventions for CSS. At first, my new settings were overwritten by the theme. So I had to load it in the footer and even set it as an external file. I then noticed that the padding-bottom was not loaded, so I had to name it with the ID and the class for it to work.
This is my final code, that rewarded me with a slim menu:
.site-header {
padding-top: 0;
}
#masthead.site-header {
padding-bottom: 0;
}
Advice css code for storefront header menu right to logo
Could you send me a link to your website and show me a screenshot or an example of what exactly you’d like to achieve? Then hopefully I can help you.
Hello
Hope you can help. On my site on the pages i.e. https://bookmine.online/listings/ there is a massive amount of padding. How can I take this down to 20px for instance?
Hi Nickie,
looks like you have two options here:
– You can remove the bottom margin of the storefront breadcrumb container
@media (min-width: 768px) {.storefront-breadcrumb {margin-bottom: 0;}}
– You can remove the top padding of the listings container with
.sp-designer .site-main {padding-top: 0;}
Both options will get the spacing between the 2 containers down.
Hope this helps!
Anna
Thanks a lot for the code..
I want to remove the padding area after navigation and “Below Header ” Widget are.
Thanks
http://www.brahmz.com
Hi Kartikay,
do you mean the white space above your slider? You would have to set:
.home.post-type-archive-product .site-header {margin-bottom: 0;}
Hope that helps!
hi….resolved…
thanks a ton!
You’re welcome! All the best for your shop!
When I mouse over the element, the corresponding section on the page changes color. Each color has a meaning, as shown in the original post’s style image.
In my case, I had green (padding) above my header, blue (header), and orange (margin) below my header. And orange (margin) below other elements. I did not have additional padding above or below any of the other elements.
My css
To remove space between header and featured image is:
#masthead.site-header {
margin-bottom: 0;
}
To remove space between featured image and title is:
img.attachment-full.size-full.wp-post-image {
margin-bottom: 0;
}
To remove space between title and content:
h1.entry-title {
margin-bottom: 0;
}
Thank you for sharing Carl! 🙂
Just wanna send you a really quick thanks – tried a few dozen codes to fix the problem and yours was the only one that worked. Thank you!
Hi Anna! I am using Storefront as my theme on a website. I reviewed all of your comments and notes on this post. It was so helpful in reducing the white space within the design! However, I’m still stuck on one and I’m hoping you can help me. 🙂
At the top of the page, underneath the header section, I’m utilizing a Below the Navigation image widget to insert the image of the line of Xs. There is a ton of white space between the page title and the XXX bar. How can I reduce that? Is it related to the H1 or the image widget?
Thanks so much for your help!
Hi Lacey,
the distance between your headline and the xxxxx line is part of the padding of the main content and then the padding of the page heading part. So what you can do is:
.page-template-template-homepage:not(.has-post-thumbnail) .site-main {padding-top: 0;}
If you want even less distance, you can add:
.page-template-template-homepage .type-page {padding-top: 0}
Both lines will only change the look on you homepage, not on any of the other pages.
I hope this helps!
All the best for you and you shop!
Anna
Hello Anna,
On my site: http://richardnogginco.com
I used the code: .home.post-type-archive-product .site-header {margin-bottom: 0;}
to shorten the padding for the home page. Is there anyway to get that padding to be even less?
If so, how would I go about adding that to the rest of my pages as well?
Thank you for your help!
Hi Kyle,
the white space you see is from the empty WooCommerce Product Header which is added by storefront. You can lower the padding in there by:
@media screen and (min-width: 768px) {.storefront-full-width-content .woocommerce-products-header { padding: 0 0 2em }}
for example. If you only put 0 the Woo content will touch your header.
Which other pages would you like to use it for? As you defined “.home” in your snippet it will right now only work on the front page.
Hey Anna,
I would like to use it on every page. To do that would I just replace the .home with whatever the page is called, or is there a way to do it sitewide maybe?
Thank you for your help. I really appreciate it!
You could just remove the home and not replace it at all. Then the css is available for all pages.
Yet, your code is for Woo Archives, if it’s not an archive, the problem won’t be the Woo Header but something else, like the storefront-breadcrump or else. So you might still have to look through the different pages and find the different margins by inspecting elements. https://developers.google.com/web/tools/chrome-devtools/inspect-styles/
All my pages should be Woo Archives for right now.
Thank you again! You’re the best!
Thank you!!! On my site sawasawausa.com I really needed this. I’m not sure how to input CSS though. I’ll figure it out.
Great post.
thanks you.
Doesnt seem to be working on proshop child theme
That’s possible. Not every child theme uses the same classes, or often they already overwrite them. the code snippet is only tested with the main storefront theme. You will have to check, if the same classes apply.
Please help, i want my menu to be beside the logo not under it. i also want to reducing the header space.
If you want the menu next to the logo, you can get this plugin: https://www.pootlepress.com/shop/align-menu-right-woothemes-storefront/
Is there a code for the footer padding also?
Hi! I just checked your url and I can’t see any padding around your footer? Do you have a screenshot?
Hi,
I’ve just created my site and i’ve got a lot of extra white space on the homepage, and way to much space around the footer. How can I remove the extra space for the footer?
Hi Sharon,
sorry for the late reply – do you still need to remove space? If yes, where exactly?
Anna
Hi Anna I am building my first website with Woo Commerce and Storefront. I don’t know squat about code!. lol. I want to do some of the same things other have asked you above. However, I don’t want to mess things up. Are there free plugins for editing the Storefront theme header?
Hi Steve,
As I use CSS to adapt themes, I don’t know any plugin extensions for Storefront to do the same. . But there are a lot of storefront extensions here: https://woocommerce.com/product-category/storefront-extensions/ Maybe some of them can help you.
Overall I do have to say, there are basically three ways to go when building a new site
– You know code and how to customize – then you can dream up your perfect site and build it.
– You don’t know code but are ok to spend money on a developer – then you can still dream up the perfect site.
– You don’t know code and don’t want to or can pay a developer – then you adapt your wishes to what’s already there and spend a lot of time with google.
I hope find your way into the theme!
All the best for your new store!
This is the first time I haven’t been able to figure something out. I want to add a Paypal logo, preferably between my title and search box, but just below the search box would be OK if necessary. I suspect that I am losing sales because the PP logo does not show up until someone is checking out…. http://www.patriotbearingsupply.com
Hi! As there is no official spot to include anything in the header, you will have to write it per CSS. You could try something like this
.site-branding:before {
content: '';
background-image: url('YOURURLTOIMAGE');
position: absolute;
right: 0;
width: 46px;
height: 46px;
}
.site-branding {
position: relative;
}
Hope this helps!
Anna
Hello,
I am just trying to get the header itself with the logo and menu smaller with less whitespace, ive tried to remove the padding in the CSS but it doesnt seem to be working out. If you could help that would be great thank you.
Also on the Mobile Menu, it lists Shop with a down arrow next to it the only way to get the drop menu to open is by clicking the arrow whereas if you click shop it goes to a general listings page not a category page, but most people wont know to click on the little arrow off to the right to see the categories, is there a way to fix this?
Thank you
Hi Jason,
for the header padding, you would have to try getting .site-header padding-top and .site-branding margin-bottom to smaller values for the specific screen sizes. That should help.
For the mobile menu you have the problem, that you can’t give one link two different targets. The shop has the target shop page, so it can’t also open the sub-menu. What you can do, is create a seperate mobile menu, where shop is only a placeholder for the submenu. There are plugins like https://wordpress.org/plugins/mobile-menu/
Hope this helps!
Anna
Рекламное агентство – это компания, которая занимается созданием и реализацией рекламных кампаний для различных клиентов. Рекламное агентство может предлагать следующие услуги:
1. Разработка рекламной стратегии: анализ аудиитории, определение целей и задач рекламной кампании, выбор каналов рекламы и бюджетирование.
2. Создание рекламного контента: разработка рекламных материалов, таких как видеоролики, баннеры, печатные объявления, тексты для социальных сетей и т.д.
3. Медиапланирование: выбор оптимальных каналов для размещения рекламы, закупка рекламного пространства, мониторинг эффективности кампании.
4. Социальные сети: создание и управление рекламными кампаниями в социальных сетях, таких как Facebook, Instagram, Twitter и т.д.
5. Оцифровка: преобразование традиционных рекламных форматов в цифровые, такие как email-рассылка, мобильная реклама и т.д.
6. Анализ и отчетность: отслеживание эффективности рекламной кампании, анализ результатов, предоставление отчетов клиенту.
Рекламные агентства могут специализироваться на различных областях, таких как:
1. Digital-агентство:?ализируется на цифровой рекламе, включая поиск, социальные сети, email-рассылку и т.д.
2. Full-service-агентство: предлагает полный спектр услуг, включая разработку рекламной стратегии, создание контента и медиапланирование.
3. Брендинговое агентство: специализируется на разработке бренда, включая создание логотипа, упаковки и т.д.
4. Event-агентство: организует и продвигает мероприятия, такие как конференции, семинары, выставки и т.д.
5. PR-агентство: занимается по связям с общественностью, включая общение с СМИ, кризис-менеджмент и т.д.
Также рекламные агентства могут иметь различные бизнес-модели, такие как:
1. Фиксированная плата: агентство получает фиксированную плату за свои услуги.
2. Комиссионная плата: агентство получает комиссию от рекламного бюджета клиента.
3. Результативная плата: агентство получает плату только в случае достижения определенных результатов, таких как увеличениеconversion rate или дохода.
В целом, рекламное агентство играет важную роль в развитии бизнеса, помогая компаниям привлекать внимание целевой аудитории и достигать своих маркетинговых целей.
мы предаставляем услуги такие как
продвижение медицинских услуг
мы работаем 24 на 7 обращайтесь поможем по разным вопроса по маркетингу
123
I’m in the mood for something sweet and spicy… you? – https://rb.gy/es66fc?erompego
Don’t miss your chance! Join now and claim your bonus immediately! – https://krakenpartners.net/ru/track/1174
Don’t miss out on your chance to get a bonus. Sign up now! – https://krakenpartners.net/ru/track/1174
Let’s see how far we can take this tonight – https://rb.gy/es66fc?erompego
Скачай КМС программу для активации Windows и Excel бесплатно!
Ищешь надежное решение для активации? Наши инструменты помогут тебе активировать Windows и Excel без лишних хлопот!
Скачай КМС программу совершенно бесплатно и забудь о проблемах с лицензиями!
Преимущества:
– Простота в использовании: всего несколько кликов и твоя система активирована
– Безопасность: мы гарантируем отсутствие вирусов и вредоносных файлов
– Поддержка: наша команда всегда готова помочь в случае возникновения вопросов
Не теряй время на поиски! Скачай КМС программу по ссылке и получи доступ ко всем функциям Windows и Excel без ограничений!
Действуй сейчас — активируй свою систему и наслаждайся всеми преимуществами! скачать можно здесь ===>>> KMSAuto Lite 1.1.6 Portable – 16 Мая 2015 – Софт портал
Hallo,
Exklusive Musik in Promoqualität für DJs https://0daymusic.org
MP3/FLAC, Label, Musikvideos. Fans, die Ihnen vollen Zugriff auf exklusive elektronische Musik verschaffen.
0day team.
Let’s see how far we can take this tonight – https://rb.gy/es66fc?erompego
Бокал для вина Pasabahce 195мл Банкет
Погрузитесь в атмосферу утонченности и стиля с бокалом для вина Pasabahce объемом 195 мл. Этот прекрасный бокал станет незаменимым атрибутом вашего стола, придавая каждой трапезе особый шарм и элегантность. Созданный известной турецкой компанией Pasabahce, этот бокал воплощает в себе высокое качество и изысканный дизайн, что делает его идеальным выбором как для повседневного использования, так и для особых случаев.
Дизайн и функциональность
Бокал для вина Pasabahce имеет классическую форму, которая подчеркнет красоту вашего любимого напитка. Емкость в 195 мл идеально подходит для подачи как красного, так и белого вина. Благодаря прозрачному стеклу, вы сможете насладиться не только вкусом, но и цветом вашего напитка. Элегантная форма бокала способствует оптимальному аэрированию вина, раскрывая его букет и аромат.
Качество материалов
Изготовленный из высококачественного стекла, бокал для вина Pasabahce отличается прочностью и долговечностью. Он способен выдерживать частые использования и при этом сохранять свой первоначальный вид. Стекло не впитывает запахи и не меняет вкус напитков, что делает его идеальным для подачи вина. Кроме того, бокал легко очищается и подходит для мытья в посудомоечной машине, что значительно упрощает уход за ним.
Универсальность использования
Бокал Pasabahce прекрасно подойдет не только для домашнего использования, но и для ресторанов, кафе и мероприятий. Он станет отличным дополнением к любому столу, будь то романтический ужин, семейное торжество или деловая встреча. С его помощью вы сможете создать атмосферу уюта и стиля, которая оценят ваши гости.
Подарок для ценителей вина
Если вы ищете идеальный подарок для ценителя вина, бокал для вина Pasabahce станет отличным выбором. Он будет радовать своего обладателя не только своей красотой, но и функциональностью. Такой подарок подчеркнет ваше внимание к деталям и желание порадовать близкого человека.
Почему стоит выбрать бокал для вина Pasabahce?
Элегантный дизайн: Подходит для любого стиля сервировки.
Качество: Изготовлен из прочного стекла, устойчивого к повреждениям.
Удобство в использовании: Легко моется, подходит для посудомоечной машины.
Идеальный объем: Отлично подходит для подачи различных сортов вин.
Универсальность: Подходит как для домашнего, так и для профессионального использования.
Заключение
Бокал для вина Pasabahce 195 мл Банкет — это не просто посуда, а предмет, который создаст атмосферу уюта и комфорта за вашим столом. Он станет верным спутником ваших винных вечеров и позволит вам наслаждаться каждым глотком. Не упустите возможность добавить этот стильный бокал в свою коллекцию или подарить его близким. Закажите бокал Pasabahce прямо сейчас и откройте для себя мир изысканных винных наслаждений!
[url=https://prof40.ru/bokal-dlya-vina-pasabahce-195ml-banket]Бокал для вина Pasabahce 195мл Банкет[/url]
[url=https://www.prof40.ru/] Проф40 – профессиональное оборудование в Калуге [/url]
https://seodirectoryseek.com/listings12677329/hassle-free-balancing-introducing-the-new-balanset-device
Пилотка коричневая: Элегантность и Удобство
Представляем вашему вниманию уникальный аксессуар – пилотка коричневая, которая станет неотъемлемой частью вашего гардероба. Этот стильный головной убор сочетает в себе практичность и элегантность, делая вас привлекательным в любых обстоятельствах. Пилотка идеально подходит как для повседневного ношения, так и для особых случаев, подчеркивая ваш индивидуальный стиль.
Универсальный стиль
Коричневая пилотка универсальна и легко сочетается с различными нарядами. Она отлично смотрится как с классическими костюмами, так и с более casual образами. Этот аксессуар прекрасно подойдет для работы, прогулок по городу или отдыха на природе. Благодаря своему нейтральному цвету, пилотка будет уместна в любой ситуации, добавляя вашему образу особый шарм.
Комфорт и качество
Изготовленная из высококачественных материалов, пилотка коричневая обеспечивает максимальный комфорт в течение всего дня. Легкая и дышащая ткань позволит вашей коже дышать, предотвращая перегрев. Кроме того, она легко стирается и быстро сохнет, что делает ее идеальным выбором для активных людей.
Преимущества использования пилотки
Защита от солнца: Пилотка не только стильно выглядит, но и защищает вашу голову от солнечных лучей, что особенно важно в жаркую погоду.
Стильный акцент: Пилотка может стать ярким акцентом вашего образа, подчеркивая вашу индивидуальность и вкус.
Легкость в уходе: Пилотка легко стирается и сохраняет свою форму даже после многочисленных стирок.
Разнообразие стилей: Доступна в различных размерах и стилях, что позволяет выбрать идеальный вариант для каждого.
Как выбрать подходящую пилотку?
При выборе пилотки важно учитывать несколько факторов:
Размер: Убедитесь, что пилотка удобно сидит на голове. Лучше всего примерить ее перед покупкой.
Материал: Обратите внимание на состав ткани. Лучше выбирать натуральные и дышащие материалы для максимального комфорта.
Стиль: Подумайте, с какими нарядами вы будете носить пилотку, и выбирайте подходящий стиль.
Как носить пилотку?
Пилотка может быть частью различных образов. Вот несколько идей:
Классический стиль: Носите пилотку с классическим костюмом или деловым нарядом для создания стильного и профессионального образа.
Кэжуал: Сочетайте пилотку с джинсами и футболкой для повседневного стиля.
Спортивный стиль: Пилотка отлично дополнит спортивный костюм, придавая вам уверенности во время тренировок.
Заключение
Не упустите возможность добавить в свой гардероб пилотку коричневую. Этот аксессуар не только подчеркнет ваш стиль, но и обеспечит комфорт на протяжении всего дня. Заказывая пилотку в нашем интернет-магазине, вы получаете не только качественный продукт, но и уверенность в своем образе. Сделайте шаг к новым стилевым решениям, выбирая коричневую пилотку!
[url=https://prof40.ru/pilotka-korichnevaya]Пилотка коричневая[/url]
[url=https://www.prof40.ru/] Морозильные камеры для любых нужд [/url]
https://seolistlinks.com/story18099946/balanset-revolutionizing-dynamic-balancing