Created
May 13, 2020 12:03
-
-
Save krokedilgists/a3c563850722252dacef9839b18e4dd9 to your computer and use it in GitHub Desktop.
Example code of how to customize the style of Avarda Checkout
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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