Grey Box around Header Menu Items when Clicking

Hello Community.

On my website flowelectric.de, when I click on one of the items in the header menu, a thick box appears, and I didnt find any option in the theme or shopify settings to remove it. Its the Empire Theme.

I tried following the answers from this post, https://community.shopify.com/c/shopify-design/when-clicking-onto-any-menu-item-it-gives-this-gray-border-how/m-p/1259224,

but those dont seem to work either.

How can I stop that grey box from appearing.

Any help is much appreciated.

Best, Richard

1 Like

Hello @RichJ

You can add code by following these steps

  1. Go to Online Store → Theme → Edit code.

  2. Open your theme.liquid file

  3. Paste the below code before on theme.liquid

.site-navigation a:focus { outline: unset !important; outline-offset: unset !important; }

Was my reply helpful? Click Like to let me know!
Was your question answered? Mark it as an Accepted Solution.

1 Like

Hi @RichJ

Check this one.

From your Shopify admin dashboard, click on “Online Store” and then “Themes”.

Find the theme that you want to edit and click on “Actions” and then “Edit code”.

In the “Assets” folder, click on “base.css, style.css or theme.css” file, depending on which file your theme uses to store its CSS styles. At the bottom of the file, add the following CSS code:

.site-navigation a:focus {
  outline: none !important;
}

And Save.

Please don’t forget to Like and Mark Solution to the post that helped you. Thanks!

1 Like

Hi @RichJ

This is Theodore from PageFly - Shopify Page Builder App

Please add this code to your theme.liquid above the to get this solved

Step 1: Online Stores > Themes > More Actions > Edit code

Step 2: click on theme.liquid and paste the code above the


Hope this can help you solve the issue

Best regards,

Theodore | PageFly

1 Like