Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * Plugin Name: Just a Custom Functions Plugin
- * Plugin URI:
- * Description: for custom functions
- * Version: 1.0.0
- * Author: Dean Robinson
- */
- function load_the_admin_css_mods() {
- //var_dump($_GET);
- if( !isset($_GET['event_admin_reports']) ) { }
- else {
- ?>
- <style>
- @media only screen and (max-width : 786px) {
- /*#event_reg_theme table thead tr th:nth-child(1),*/
- #event_reg_theme table thead tr th:nth-child(3),
- #event_reg_theme table thead tr th:nth-child(4),
- #event_reg_theme table thead tr th:nth-child(5),
- #event_reg_theme table thead tr th:nth-child(7),
- #event_reg_theme table thead tr th:nth-child(9),
- #event_reg_theme table thead tr th:nth-child(10) {
- display: none;
- }
- /*#event_reg_theme table tbody tr td:nth-child(1),*/
- #event_reg_theme table tbody tr td:nth-child(3),
- #event_reg_theme table tbody tr td:nth-child(4),
- #event_reg_theme table tbody tr td:nth-child(5),
- #event_reg_theme table tbody tr td:nth-child(7),
- #event_reg_theme table tbody tr td:nth-child(9),
- #event_reg_theme table tbody tr td:nth-child(10) {
- display: none;
- }
- #event_reg_theme form table thead tr th:nth-child(1),
- #event_reg_theme form table tbody tr td:nth-child(1) {
- width: 15% !important;
- }
- #event_reg_theme form table thead tr th:nth-child(2),
- #event_reg_theme form table tbody tr td:nth-child(2) {
- width: 40% !important;
- }
- #event_reg_theme form table thead tr th:nth-child(6),
- #event_reg_theme form table tbody tr td:nth-child(6) {
- width: 25% !important;
- }
- #event_reg_theme form table thead tr th:nth-child(8),
- #event_reg_theme form table tbody tr td:nth-child(8) {
- width: 20% !important;
- display:table-cell;
- overflow:visible;
- }
- }
- </style>
- <?php
- }
- }
- add_action('admin_head','load_the_admin_css_mods');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement