How to change a background color to button "upload image" in submit listing

Hi Team,
How do you change the color via CSS on the button for uploading images on the add listing page?

I tried but without result


Try this code-snippet

add_action( 'wp_head', function () { ?>

	.hp-field--button { background-color: red; }

<?php } );
1 Like

Hi Seegon
Wow!!! Work perfectly

Tnx again

why is this better than simply add :

.hp-field–button { background-color: red; }

to the child theme style.css ? serius question

I don’t know why, but for me work very well


1 Like

Yes, you can simply keep CSS snippets in Appearance/Customize, a PHP wrapper (suggested above) is required only if you keep this snippet as a PHP one (e.g. in the Code Snippets plugin).

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.