checkout-page.css bad practice with !important

[ad_1]

For people using CheckoutWC plugin, you may encounter a conflict with CSS and the phone input field due to bad practice of the developpers of Up2pay plugin.

Here the explanations:

The problem comes from the fact that the Up2Pay plugin is using the exact same front end library for international telephone input.

The core problem is the developers of Up2Pay are not following the best practices of CSS, leading to this type of markup and layout conflicts on a WordPress site where multiple plugins each bringing their own CSS clash for space on the same page.

For this very specific case, the Up2Pay plugin developers are shipping CSS with the important flag that is taking priority over anything else, and causing the shrunken input you see to be styled by them, no matter the CheckoutWC default styling.

Please take a look at the !important flag documentation by the Mozilla Developer Network: https://developer.mozilla.org/en-US/docs/Web/CSS/important. It’s usage is primarily not recommended to prevent this type of problems overriding others code.

  • This topic was modified 2 minutes ago by tbo460.

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer