最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

woocommerce offtopic - Some html elements displaing in a strange order in Wordpress

programmeradmin2浏览0评论

I had a menu in which I juste added 3 items but instead of having :

<div class="avia_mega_div avia_mega2 six units">

<ul class="sub-menu">
    <li id="menu-item-2016"></li>
    <li id="menu-item-2955"></li>
    <li id="menu-item-2017"></li>
</ul>

</div>

I had that :

<div class="avia_mega_div avia_mega2 six units">

<ul class="sub-menu">
    <li id="menu-item-2016"></li>
    <li id="menu-item-2955"></li>
</ul><ul class="sub-menu avia_mega_hr">
    <li id="menu-item-2017"></li>
</ul>

</div>

As I didn't find why I corrected with javascript. But now I have some woocommerce checkout custom fields (Checkout Field Editor for WooCommerce plugin) at the wrong place (wrong order) I don't know if it is the same cause, I checked with add_filter("woocommerce_checkout_fields" and there's no problem here EDIT: there are in the wrong order here too).

I tried to disable plugins one by one but didn't find one causing the problem.

How can I "ascend" the issue to find the cause ?

EDIT: I created a woocommerce_checkout_fields filter, reordered the fields and reseted the "order" and "priority" properties, it corrected the issue. Some fields had no "priority" property but the "order" one. I think the custom fields editor plugin uses order when the new WP uses priority.

发布评论

评论列表(0)

  1. 暂无评论