A user seeks to style a header menu link (‘Book a free design visit’) to resemble a button with distinct background color and text styling.
Solutions Provided:
Multiple CSS approaches were shared targeting the specific link ID (#HeaderMenu-book-a-free-design-visit)
Code snippets include background colors, border-radius, and padding to create button-like appearance
One solution uses <style> tags inserted before the </body> tag in theme.liquid
Others recommend adding CSS directly to base.css/style.css files
Issue Encountered:
Initial implementations caused the link text to disappear or match the background color when clicked/visited. Updated code was provided to maintain white text color across all page states.
Related Request:
A second user requested similar styling for a ‘Sign-In’ button linking to an external site, asking for:
Blue color matching existing ‘Learn More’ buttons
Right alignment adjustment
Standard theme hover effects (instead of blue underline)
The discussion remains active with the second request awaiting final implementation details.
Summarized with AI on October 31.
AI used: claude-sonnet-4-5-20250929.
If you require further help to optimize your store, please don’t hesitate to reach out. If you find this information useful, a Like would be greatly appreciated. And if this solves the problem, please Mark it as Solution!
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:
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:
I’d like to float it further to the right as well, and I would like to have the standard button hover treatment from the theme (it’s currently showing a blue underline on hover).