1. Home
  2. Docs
  3. Custom Code Samples
  4. Checkout Map
  5. Change “Detect Current Location” button color

Change “Detect Current Location” button color

function lpac_change_checkout_btn_color(){
echo "
<style>
#lpac-find-location-btn{
  background: #008b8b;
}
</style>
";
}
add_action('wp_head', 'lpac_change_checkout_btn_color');

Change Button & Button Text Color


function lpac_change_checkout_btn_txt_color(){
echo "
<style>
#lpac-find-location-btn{
  background: #008b8b;
  color: #eeff00;
}
</style>
";
}
add_action('wp_head', 'lpac_change_checkout_btn_txt_color');
Was this article helpful to you? Yes No