Last active
July 23, 2024 11:09
-
-
Save hamidrezayazdani/3717ece59ae415abcaad3544dacc3774 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function ywp_fix_woocommerce_admin_order_list_css() { | |
$custom_css = " | |
@media screen and (max-width: 782px) { | |
.post-type-shop_order .wp-list-table tr:not(.is-expanded) td.column-order_number a.order-view, .woocommerce_page_wc-orders .wc-orders-list-table.wp-list-table tr:not(.is-expanded) td.column-order_number a.order-view { | |
width: calc(100% - 48px - 10ch)!important; | |
} | |
} | |
@media screen and (max-width: 782px) { | |
.column-order_date { | |
visibility: hidden | |
} | |
} | |
"; | |
wp_add_inline_style( 'woocommerce_admin_styles', $custom_css ); | |
} | |
add_action( 'admin_print_styles', 'ywp_fix_woocommerce_admin_order_list_css' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment