Created
February 14, 2020 13:56
-
-
Save joshfeck/3408b6d0dd6b81f8b88a5b81e6c5a8ca to your computer and use it in GitHub Desktop.
Example showing how to add custom CSS to the Event Espresso Transactions admin page
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 | |
//* Please do NOT include the opening php tag, except of course if you're starting with a blank file | |
add_action( | |
'admin_enqueue_scripts', | |
'my_custom_txn_table_column_widths', | |
20 | |
); | |
function my_custom_txn_table_column_widths() { | |
$css = | |
'.transactions .column-TXN_ID { | |
width: 8% | |
} | |
.transactions .column-TXN_timestamp { | |
width: 16%; | |
} | |
.transactions .column-actions { | |
width: 16%; | |
}'; | |
wp_add_inline_style('espresso_txn', $css); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment