I am trying to style my wordpress plugin and I'm having a hard time with the radio buttons.
Here is the fiddle: https://jsfiddle.net/cd3wagvh/
I want to hide the radio buttons and instead change the background of the whole label when it is clicked.
I have tried many things but nothing seems to work.
This part in particular is not working as intended:
.pewc-checkbox-group-wrapper input[type=radio]:checked+label {
background-color: red !important;
}
Edit: I cannot edit the HTML as it's part of a WordPress plugin and that's how they have it.
Edit: I have the part of the php code where I can potentially reverse the order?
'<li><label for="%s"><input data-option-cost="%s" type="radio" name="%s[]" id="%s" class="pewc-radio-form-field" value="%s" %s> %s</label></li>',
My php is no good, any help would be great!