
Originally Posted by
lat9
My bad; you need to add the custom-control-label class to that (er) <label> tag.
But WHERE do I add that? This is the code that spits out the checkbox:
Code:
'<div class="custom-control custom-checkbox">' .
zen_draw_checkbox_field('permLogin', '1', $this->checkbox_default, 'id="permLogin"') .
'<label class="checkboxLabel" for="permLogin" title="' . TEXT_REMEMBER_ME_ALT . '">' . TEXT_REMEMBER_ME . '</label>' .
'</div>';
As you can see, there is no way to edit the "class value" for the zen_draw_checkbox_field() function in that line of code.
Now, I can APPEND a class value to it by doing this:
Code:
zen_draw_checkbox_field('permLogin', '1', $this->checkbox_default, 'class="custom-control-label" id="permLogin"')
Then it only appends that class to the existing class like this (which still doesn't work):
Code:
<input type="checkbox" name="permLogin" value="1" checked="checked" class="custom-control-input custom-control-label" id="permLogin">
The only way for it to work seems to be to change wherever zen_draw_checkbox_field() is getting that default "custom-control-input" when it outputs it. Where do we change THAT so that it can be something else?
Bookmarks