Goal: Adjust Shopify search bar so the search icon appears on the right and the close (“X”) sits outside the search field on mylongevitylife.com.
Proposed solutions:
Theme.liquid edit: One reply advised adding custom code under the tag in theme.liquid. However, the actual snippet wasn’t included in the post (only a screenshot reference), so exact instructions are unclear.
CSS in Assets > base.css (option 1):
• .search__button.field__button { right: 0 !important; left: inherit !important; }
• .modal__close-button.link { position: absolute !important; right: 0 !important; left: inherit !important; }
This repositions the search icon to the right and the modal close button to the outer right.
Notes: “search__button” is the search icon button; “modal__close-button” is the search modal’s close icon. Screenshots were referenced for context.
Status: No confirmation from the original poster; outcome unresolved.
Summarized with AI on December 27.
AI used: gpt-5.
Go to your theme’s “Edit Code” Option, then in the search bar type “theme.liquid”
Below the tag “” tag paste the following. Screenshot attached for reference.
Screenshot is for reference only, the correct code to paste is the one shown above.