There is a post that is on StackOverflow that explains how to change the style of a radio button: Styling radio button
Here's the code provided in that post:
input[type="radio"] {
display: none;
}
.graphical-radio {
background: gray;
display: inline-block;
width: 30px;
height: 30px;
border-radius: 100%;
}
input[type="radio"]:checked + .graphical-radio {
background: red;
}
<ul>
<li>
<label>
<input class="wpProQuiz_questionInput" type="radio" name="question_1_2" value="3" />
<span class="graphical-radio"></span>
Non riesco a lasciarlo solo
</label>
</li>
</ul>
It explains that I have first to insert a <span>
after each radio button but I have no idea how insert a <span>
.
How do I insert <span>
in every possible answer in Wordpress?