Shopify themes, liquid, logos, and UX
How to remove search highlighted box when you press it on mobile
url knmb1c-pf.myshopify.com
password samurai
Hi @undercoverfresh
Please add below code to theme.liquid it will remove the highlighted box
<style>
details-modal.header__search:focus-visible {
outline: unset;
box-shadow: none;
}
</style>
Where in theme.liquid should i add this code?
Hi @undercoverfresh
You can add it before </head>
Tried it didn’t work
Hi @undercoverfresh Can you please update the code with the below
I have updated the code; can you please check it now?
<style>
details-modal.header__search:focus-visible{
outline: none !important;
box-shadow: none !important;
-webkit-tap-highlight-color: transparent !important;
-webkit-focus-ring-color: transparent !important;
}
details-modal.header__search:focus,
details-modal.header__search:focus-visible,
details-modal.header__search:active,
details-modal.header__search:focus-within {
outline: none !important;
box-shadow: none !important;
}
</style>
tried new code as well didnt work
Hi @undercoverfresh
Check my previous answer I have updated the code.
Also tried the previous doesn't work im on dawn 15.2.0
Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025Unlock the potential of marketing on your business growth with Shopify Academy's late...
By Shopify Mar 12, 2025Learn how to increase conversion rates in every stage of the customer journey by enroll...
By Shopify Mar 5, 2025