Hide countries

Tutorial

Considering these factors, if you still wish to hide a country from the Orbe Geolocation Popup selector, you can do so by adding the following CSS:

.md-form__select__country__list li[data-country="XX"] {
    display: none !important;
}

Here, "XX" refers to the ISO two-letter country code. You can find a global list of country ISO two-letter codes at countrycode.org.

Example: Suppose you want to hide Germany, the United Kingdom, and Japan. You can achieve this with the following CSS:

.md-form__select__country__list li[data-country="DE"],
.md-form__select__country__list li[data-country="GB"],
.md-form__select__country__list li[data-country="JP"] {
    display: none !important;
}

This CSS will hide the specified countries from the Orbe Geolocation Popup selector. Remember to replace "DE," "GB," and "JP" with the appropriate country codes for the countries you want to hide.

If you want to achieve the same customization in the Market Selector, you can use a similar CSS approach.

To hide a specific country from the Market Selector, apply the following CSS:

.md-modal__footer-selector-modal__region-list li[data-country="XX"] { 
    display: none !important;
}

Example: Suppose you want to hide Germany, the United Kingdom, and Japan. You can achieve this with the following CSS:

.md-modal__footer-selector-modal__region-list li[data-country="DE"],
.md-modal__footer-selector-modal__region-list li[data-country="GB"],
.md-modal__footer-selector-modal__region-list li[data-country="JP"] {
    display: none !important;
}

This CSS will hide the specified countries from the Market Selector. Remember to replace "DE," "GB," and "JP" with the appropriate country codes for the countries you want to hide.

By following these steps, you can customize both the Geolocation Popup selector and the Market Selector to suit your specific needs. However, we recommend careful consideration before hiding countries to ensure your customers' best possible user experience.

Last updated

Was this helpful?