Hello @simonkane
WooCommerce adds its own classes here (for some reason unknown to me).
Please add this to the functions.php file of the active template. It will overwrite these settings.
add_action( 'admin_head', function() {
?>
<style>
#order_data .order_data_column div.address[style*="display: none"] + div.edit_address {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
</style>
<?php
} );
Great! Thanks! It worked (your way).
I tried adding this to my admin.css (already hooked in for various reasons, and is confirmed active on the Order Edit page), but it did not work. Full disclosure: While I am a good programmer, I know almost zero about CSS.
#order_data .order_data_column div.address[style*=”display: none”] + div.edit_address {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
For consistency, and my own education, might you enlighten me about why this did not work? Any insight is greatly appreciated!
Hello @simonkane
I apologize for the waiting time for an answer.
Please use this plugin to insert CSS into the admin panel.
Add Admin CSS
It should work. Just correct the quotation marks before and after display: none.
#order_data .order_data_column div.address[style*="display: none"] + div.edit_address {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
}
Hi!
I’m not sure where the “bad” quotes got into the mix, but they are correct now.
I think the original issue may have had to do with CSS caching.
I encountered the same fault on this retry, but when I cleared out caches,
It worked!
Note that I am not using the plugin you recommend (although it looks good).
I have already enqueued my child-theme’s admin.css file via action ‘admin_enqueue_scripts’ in my theme’s functions.php.
The action is coded to limit the enqueue to:
$hook == ‘post.php’ && $screen->post_type == ‘shop_order’
This limits the possibility of unintended conflicts in other areas.
(I believe in an abundance of caution when modifying/enhancing code.)
Thanks again!
Moderator
Jan Dembowski
(@jdembowski)
Forum Moderator and Brute Squad
@simonkane Please do not create duplicate topics in these forums. I have archived your new topic.
Creating multiple topics for the same plugin issue makes it harder for the volunteer support for this plugin to help you.
@jdembowski
The OTHER ticket was NOT a duplicate of this one, but the plugin rep saw some relationship between this ticket and the other one.
Again, THAT ticket is NOT a duplicate of this one, and the primary reason for that ticket is still under discussion.
Please restore it, so that the bug reported in that ticket can be handled.
https://wordpress.org/support/topic/order-section-fields-show-in-the-shipping-section/
Moderator
Yui
(@fierevere)
永子
@simonkane
✅
but still consider the above warning in future.
Creating multiple topics for same issue will make finding the solution harder
Like I said it’s not a duplicate.
The vendor made reference to what turns out to be this solution first – NOT ME.