How to remove the red marked bar?
Urgent help.
I am using a licensed theme.
Without a Shopify account. It appears in another browser.
Action bar closed videos and solutions do not work.
How to remove the red marked bar?
Urgent help.
I am using a licensed theme.
Without a Shopify account. It appears in another browser.
Action bar closed videos and solutions do not work.
To remove or hide this “Closed Bar” in Shopify, you have these options:
If you just want to visually hide it (not recommended for long-term production), you can add this to your Shopify theme’s CSS:
#preview-bar-iframe,
.shopify-preview-bar {
display: none !important;
visibility: hidden !important;
height: 0 !important;
}
Steps:
Go to Online Store > Themes > Actions > Edit code.
Open your theme.liquid file or your main CSS file (could be theme.css, base.css, or similar).
Add the above CSS at the bottom.
Save.
Note: This will only hide it from customers visually — the code is still loaded in the background. For a clean site, licensing the theme is better.
If you want a more proper solution:
Find where the theme injects this bar. It’s usually inside the theme.liquid file, possibly referencing something like
It looks like a Preview Bar which is shown when previewing Draft themes. It does not seem to be about licensing.
Interestingly, there is a number of places in the HTML code like this
Or
```markup
See how addresses have a &preview_theme_id=XXXX parameter added – this is what makes shopify to load a preview bar.
Can’t say why these parameters are added without seeing the theme code – or maybe there is a setting for this in theme setting?
Obviously, it’s possible to hide Preview bar with code, say by adding this to the “Custom CSS” under Theme Settings as a first step.
body div#PBarNextFrameWrapper {
display: none !important;
}
However, it would be proper to prevent it from being added…
First of all, thanks for the support.
I added the code you gave at the end of the code. Not resolved.
I couldn’t find it. It’s probably hidden.
Thank you very much.
Solution: I added it to “Custom CSS” from theme settings.
body div#PBarNextFrameWrapper {
display: none !important;
}
Problem solved.
I will send you an e-mail thanking you.