How Do I Change the Color of a Button in WordPress CSS?
on 24 August, 2022
No Comments
Changing the color of a button in WordPress can be done in a few simple steps. To begin, open your wp-config.
php file in your WordPress installation and locate the line containing the definition for the “wp_button” widget. This line should look something like this:.
define(‘WP_BUTTON_COLOR’, ‘#666’);
Next, you will need to replace the #666 value with the color of your choice. To do this, open your CSS file and locate the following line:
.wp-button {
background-color: #fff;
}
Replace #fff with the color of your choice and save the file. Finally, you will need to add this style to the head of your HTML document: