Desktop Dilemma: Why Your Shopify Hero Section Might Be Shrinking (and How to Fix It!)
Hey there, fellow store owners! Ever logged into your Shopify admin, taken a peek at your live site, and thought, "Wait, that's not right!"? It's a common, albeit frustrating, experience. Sometimes, without any obvious changes on your part, elements on your site seem to develop a mind of their own. That's exactly what happened to a store owner, goodmas767, in a recent community discussion I was following.
They reached out because their desktop video hero and the slideshow right underneath it had suddenly shrunk in width. Even more perplexing, the mobile version looked perfectly fine, and they'd already set the width options in the theme customizer to their highest settings. On top of that, they were seeing a weird menu issue where clicking "Registration" also highlighted "Book a Viewing," leading to some navigation confusion. Sound familiar? Let's dive into what the community suggested and how you can tackle these kinds of unexpected layout glitches.
Here's a look at goodmas767's store (as linked in their original post):

First Steps: The Quick Checks (Before Diving into Code)
When something suddenly looks off, the first thing to consider is whether it's truly a site-wide issue or something local to your browser. Our community member, tim_1, hit the nail on the head here. They mentioned that when they checked goodmas767's site, everything appeared normal on their end. This immediately points to a few crucial troubleshooting steps:
- Try Incognito Mode: Open your store in an incognito or private browsing window. This bypasses your browser's cache and cookies, giving you a fresh look at the site.
- Switch Browsers: If incognito doesn't help, try a different web browser (e.g., Chrome, Firefox, Edge, Safari). This can rule out browser-specific extensions or settings causing the problem.
- Clear Cache and Cookies: A classic fix! Your browser stores temporary files (cache) and site data (cookies) to speed up loading. Sometimes these get corrupted. Clearing them forces your browser to download fresh copies of your site's files.
It's amazing how often these simple steps can resolve mysterious display issues! If, after all that, your hero section and slideshow are still playing shy, then it's time to dig a little deeper.
Sizing Up Your Content: Are Your Images & Videos Optimized?
Another point raised by Mustafa_Ali was about the actual dimensions of the video hero and slideshow content. While goodmas767 confirmed their theme settings were maxed out, it's always worth ensuring your images and videos themselves are appropriately sized for a desktop display. Mustafa_Ali suggested desktop dimensions in the range of 2400x1000 pixels and mobile around 750x1100 pixels. These are general guidelines, but if your source media is significantly smaller than what your theme expects for a full-width hero, it might struggle to stretch it without pixelation or simply refuse to fill the space correctly.
Taking Control with Custom CSS: The Ultimate Width Fix
If the above checks don't fix it, it's likely a CSS conflict or an overridden theme style. This is where a little custom code comes in handy, and mastroke provided a fantastic, targeted solution. The key here is to apply specific CSS that ensures your banner, slideshow, and video sections always take up 100% of the available width on desktop screens, without affecting mobile views.
Here's the CSS snippet:
@media (min-width: 990px) {
.banner,
.slideshow,
.video-section {
max-width: 100%;
width: 100%;
}
}
How to Add This Custom CSS to Your Shopify Store:
This code tells your browser: "When the screen is 990 pixels wide or more (i.e., desktop), make sure these specific sections (.banner, .slideshow, .video-section) are always 100% wide."
- From your Shopify Admin: Go to Online Store > Themes.
- Find your current theme: Click the Actions button next to your live theme.
- Edit Code: Select Edit code from the dropdown menu.
- Open
base.cssortheme.css: In the Assets folder on the left, look for a file named something likebase.css,theme.css, orcustom.css. If you have acustom.cssorsnippets/custom-css.liquidfile, that's often the best place to add your own code to keep it organized. If not,base.cssortheme.cssare common locations. - Paste the CSS: Scroll to the very bottom of the selected CSS file and paste the code snippet provided above.
- Save: Click Save.
After saving, refresh your store page (and maybe clear your browser cache again, just to be safe!) and check if your hero section and slideshow are now filling the full width as intended. This method is powerful because it specifically targets desktop views, leaving your mobile layout untouched.
Untangling the Menu Highlighting Confusion
Now, let's quickly address that secondary menu issue goodmas767 brought up: "Registration" and "Book a Viewing" both activating. tim_1 offered a great explanation here. Shopify's navigation (like most content management systems) highlights menu items by comparing the current page's URL with the URLs linked in your menu. If two menu items point to pages with very similar or identical URLs, the system might highlight both if they match the current page.
For instance, if both "Registration" and "Book a Viewing" link to /pages/registration, the system will see that URL and highlight both menu items associated with it. To fix this, you generally need to ensure each menu item points to a unique, distinct URL. If "Registration" and "Book a Viewing" are indeed separate pages or sections, make sure their URLs are completely different (e.g., /pages/registration and /pages/book-a-viewing). If they are meant to lead to the same content, then perhaps combine them into a single menu item or use a dropdown to clarify the options.
Unexpected visual glitches and navigation quirks can be frustrating, but as you can see, the Shopify community is a goldmine of practical advice. Often, a combination of basic browser troubleshooting, content optimization, and targeted CSS can get your store looking sharp again. Don't hesitate to lean on these tips, and remember, a little code can go a long way in perfecting your store's desktop experience!