Skip to content

Instantly share code, notes, and snippets.

@krokedilgists
Created May 13, 2020 12:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save krokedilgists/a3c563850722252dacef9839b18e4dd9 to your computer and use it in GitHub Desktop.
Save krokedilgists/a3c563850722252dacef9839b18e4dd9 to your computer and use it in GitHub Desktop.
Example code of how to customize the style of Avarda Checkout
/**
* Filter hook aco_custom_css_styles
* Example code of how to customize the style of Avarda Checkout.
*
* Add this code to your themes functions.php file or include it in a separate functionality plugin.
*/
add_filter( 'aco_custom_css_styles', 'aco_customize_checkout_style' );
function aco_customize_checkout_style( $styles ) {
$styles = array(
'buttons' =>
array(
'primary' =>
array(
'base' =>
array(
'backgroundColor' => '#93c01f',
'borderColor' => '#3f3f3f',
'color' => '#fff',
),
),
),
);
return $styles;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment