admin管理员组文章数量:1334697
Normally, woocommerce html output for checkout fields (billing and shipping sections) places label tags before input tags and wraps it all in a paragraph tag. I'm trying to alter the Woocommerce function that outputs the checkout fields to display the the input tags before the label tags without using any javascript.
The HTML currently looks like this:
<p class="form-row form-row-last thwcfd-field-wrapper thwcfd-field-text validate-required" id="billing_last_name_field" data-priority="30">
<label for="billing_last_name" class="">Last name <abbr class="required" title="required">*</abbr></label>
<span class="woocommerce-input-wrapper">
<input type="text" class="input-text " name="billing_last_name" id="billing_last_name" placeholder="" value="saye" autocomplete="family-name">
</span>
</p>
But i'm trying to get it to look like this:
<p class="form-row form-row-last thwcfd-field-wrapper thwcfd-field-text validate-required" id="billing_last_name_field" data-priority="30">
<span class="woocommerce-input-wrapper">
<input type="text" class="input-text " name="billing_last_name" id="billing_last_name" placeholder="" value="saye" autocomplete="family-name">
</span>
<label for="billing_last_name" class="">Last name <abbr class="required" title="required">*</abbr></label>
</p>
Thanks guys.
本文标签: phpModify HTML structure of fields in woocommerce checkout form
版权声明:本文标题:php - Modify HTML structure of fields in woocommerce checkout form 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1742341243a2456644.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论