How to make a stroke for Country/region Selector like on the first site [link / 1 image], now it looks like this [link / 2 image] And also to show currency when hovering as on [link / 3 image]
Topic summary
A user wants to add a border/stroke to their country/region selector and display currency information on hover, similar to a reference site’s implementation.
Current Issue:
- The selector lacks visual definition compared to the desired design
- No currency display functionality on hover
Proposed Solution:
Another user suggests CSS modifications:
- Add a border using
.country-selectorwithborder: 1px solid #000and padding - Implement hover effects to show currency using pseudo-elements and data attributes
- Apply styles directly in the theme’s CSS file
Status: The discussion provides initial CSS code snippets but appears incomplete (some code text is corrupted/reversed). Implementation details may need clarification or additional technical guidance.
you can add a border by modifying the CSS.
.country-selector {
border: 1px solid #000;
padding: 5px;
}
To show currency on hover, you could add a hover effect in the CSS:
.country-selector:hover::after {
content: attr(data-currency);
display: block;
position: absolute;
background-color: #fff;
border: 1px solid #000;
padding: 2px 5px;
}
Make sure to apply these styles in your theme’s CSS file


