• Resolved rafalwenio

    (@rafalwenio)


    Hi,

    Two questions:

    1. How to hide/remove the arrow when selecting a country (small gray triangle in country field).
    2. How to hide the entire country selection box (gray rectangle).

    Page language: Polish

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • To hide the arrow and the country selection box in WooCommerce checkout, you can use CSS code. Here’s how to do it:

    1. Hide the Arrow:
      To hide the small gray triangle (arrow) in the country field, you can use the following CSS:
    /* Hide the country field arrow */
    .woocommerce-billing-fields #billing_country_chosen:after,
    .woocommerce-shipping-fields #shipping_country_chosen:after {
        content: none !important;
    }
    1. Hide the Entire Country Selection Box:
      If you want to hide the entire gray rectangle containing the country selection, you can use this CSS:
    /* Hide the country selection box */
    .woocommerce-billing-fields #billing_country_field,
    .woocommerce-shipping-fields #shipping_country_field {
        display: none !important;
    }
    1. Apply the CSS:
      You can add these CSS rules to your theme’s custom CSS or in the additional CSS section of your WordPress customizer. If your theme has an option to add custom CSS, use that to ensure your changes are preserved even after theme updates.

    Remember that using CSS to hide elements is a visual change and doesn’t affect the functionality of the form. Always test these changes on a staging or development site before applying them to your live site to ensure they work as expected.

    After adding the CSS, the country field arrow and the entire country selection box should be hidden according to your requirements.

    Thread Starter rafalwenio

    (@rafalwenio)

    OK

    Thank you very much!

    Plugin Support Beauty of Code (woo-hc)

    (@beautyofcode)

    Hi @rafalwenio ,

    It seems @owadud655 has provided the solution here ??

    I’ll go ahead and mark this as resolved then, however, feel free to?create a new topic?if you need any further help.

    Also, if you have a minute, we’d love it if you could leave us a review: 

    https://www.ads-software.com/support/plugin/woocommerce/reviews/

    Cheers!

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘field: country’ is closed to new replies.