Missing Label Element causing missing buttons
-
I am using Seamless donations on one site and it works perfectly.
I have installed it on a new site and am having an issue with the styling of the radio buttons. On the site that works the buttons are styled like bootsrap buttons. On the site that does not the donation values are present but no button is visible.
When I use inspect element function on chrome to see the difference between the two sites I there is only one difference, which is the absence of
“<label for=”donate-200″ class=”dgx_donate_giving_level_200″>$200</label>”
When I use chrome’s inspect element to “Edit as HTML” and insert the missing label tag the formatting of the one button I edited works as desired.
Below is the html from each.
Site that Works<span id=”dgx_donate_giving_level_200″ class=”horiz”>
<span id=”dgx_donate_giving_level_200-error-message” style=”display:none” class=”seamless-donations-error-message-field”></span>
<input type=”radio” name=”_dgx_donate_amount” value=”200″ id=”donate-200″ data-conceal=”.other-donation-level”><label for=”donate-200″ class=”dgx_donate_giving_level_200″>$200</label></span>
Site that does not work.
<span id=”dgx_donate_giving_level_200″>
<span id=”dgx_donate_giving_level_200-error-message” style=”display:” class=”seamless-donations-error-message-field”></span>
<input type=”radio” name=”_dgx_donate_amount” checked=”” value=”200″ data-conceal=”.other-donation-level”>$200</span>
I have tried enabling “Add label tag…” under form options, but it made no difference. It is now enabled. I am using WP 4.5 and Seamless Donations 4.0.17 on both sites.
Do you know what could be causing this problem and how I might fix it?
I would appreciate the help, but completely understand if this falls outside the supports you provide.
Mark
PS- Thanks for doing what you do, this plugin is so helpful 🙂
PPS- Sorry I posted this before and the copied <label> tag topic title changed it too a missleading name so I am reposting it now.
The topic ‘Missing Label Element causing missing buttons’ is closed to new replies.