This topic will explain how can you add labels for poll options (when you click on option text, the radio button will be checked).
Open the file templates/your_template/viewtopic_poll_ballot.tpl and find:
- Code: Select all
value="{poll_option.POLL_OPTION_ID}"
In line, after add:
- Code: Select all
id="option_{poll_option.POLL_OPTION_ID}"
Now, find:
- Code: Select all
{poll_option.POLL_OPTION_CAPTION}
And replace with:
- Code: Select all
<label for="option_{poll_option.POLL_OPTION_ID}">{poll_option.POLL_OPTION_CAPTION}</label>
Done.



