Advertisement
Apina

EE3 hide admin columns

Nov 13th, 2014
192
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.81 KB | None | 0 0
  1. <?php
  2. /**
  3. * Plugin Name: Just a Custom Functions Plugin
  4. * Plugin URI:
  5. * Description: for custom functions
  6. * Version: 1.0.0
  7. * Author: Dean Robinson
  8. */
  9.  
  10.  
  11.  
  12.  
  13. function load_the_admin_css_mods() {
  14.  
  15. //var_dump($_GET);
  16. if( !isset($_GET['event_admin_reports']) ) { }
  17. else {
  18. ?>
  19.  
  20. <style>
  21. @media only screen and (max-width : 786px) {
  22.  
  23. /*#event_reg_theme table thead tr th:nth-child(1),*/
  24. #event_reg_theme table thead tr th:nth-child(3),
  25. #event_reg_theme table thead tr th:nth-child(4),
  26. #event_reg_theme table thead tr th:nth-child(5),
  27. #event_reg_theme table thead tr th:nth-child(7),
  28. #event_reg_theme table thead tr th:nth-child(9),
  29. #event_reg_theme table thead tr th:nth-child(10) {
  30. display: none;
  31. }
  32.  
  33. /*#event_reg_theme table tbody tr td:nth-child(1),*/
  34. #event_reg_theme table tbody tr td:nth-child(3),
  35. #event_reg_theme table tbody tr td:nth-child(4),
  36. #event_reg_theme table tbody tr td:nth-child(5),
  37. #event_reg_theme table tbody tr td:nth-child(7),
  38. #event_reg_theme table tbody tr td:nth-child(9),
  39. #event_reg_theme table tbody tr td:nth-child(10) {
  40. display: none;
  41. }
  42.  
  43.  
  44. #event_reg_theme form table thead tr th:nth-child(1),
  45. #event_reg_theme form table tbody tr td:nth-child(1) {
  46. width: 15% !important;
  47. }
  48.  
  49. #event_reg_theme form table thead tr th:nth-child(2),
  50. #event_reg_theme form table tbody tr td:nth-child(2) {
  51. width: 40% !important;
  52. }
  53.  
  54. #event_reg_theme form table thead tr th:nth-child(6),
  55. #event_reg_theme form table tbody tr td:nth-child(6) {
  56. width: 25% !important;
  57. }
  58.  
  59. #event_reg_theme form table thead tr th:nth-child(8),
  60. #event_reg_theme form table tbody tr td:nth-child(8) {
  61. width: 20% !important;
  62. display:table-cell;
  63. overflow:visible;
  64. }
  65.  
  66. }
  67. </style>
  68.  
  69. <?php
  70. }
  71.  
  72. }
  73.  
  74. add_action('admin_head','load_the_admin_css_mods');
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement