Change font size in products listing pages in woocommerce

I want to reduce the font size of the text inside the table so I can fit in more columns. Is there a hook I can use or do I need to modify wordpress/woocommerce’s core? In that case, which css or template file do i need to change?woocommerce-products-listing-page

4 Answers
4

Another option would be to use the current_screen hook

add_action( 'current_screen', 'my_admin_listing_custom_styles' );
function my_admin_listing_custom_styles() {
    $current_screen = get_current_screen();
    if( 'edit' == $current_screen->base && 'product' == $current_screen->post_type) {
        // Run some code, only on the admin products listing page for e.x add css style
        ?>
        <style type="text/css">
        a.row-title {font-size: 18px !important;}
        </style>
        <?php
    }
}

Leave a Comment