Skip to content

Instantly share code, notes, and snippets.

@joshfeck
Created February 14, 2020 13:56
Show Gist options
  • Save joshfeck/3408b6d0dd6b81f8b88a5b81e6c5a8ca to your computer and use it in GitHub Desktop.
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
<?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