My typical approach for setting up a checkbox involves using the code below:
<input ....>
<label for="...">Lorem ipsum</label>
I usually style the label to mimic a checkbox when checked or unchecked like this:
input label{....}
input::checked label{....}
However, due to a Wordpress plugin, I am now required to use this syntax:
<label>....
<input....>
</label>
Since CSS cannot navigate the DOM in this case, my usual CSS method is not effective.
Any alternative suggestions? Maybe jQuery would work here? Or is there a CSS solution that I haven't considered?