Advertisement
Guest User

Untitled

a guest
Mar 5th, 2014
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.89 KB | None | 0 0
  1. /** Hides Category Selection Option on Submission Form
  2. -----------------------------------------------------------*/
  3.  
  4. add_action( 'wp_footer', 'community_add_javascript' );
  5. function community_add_javascript() {
  6. if (tribe_is_community_edit_event_page()) {
  7. ?>
  8. <script type="text/javascript">
  9. //Hide categories
  10. jQuery('.tribe-community-event-details:first').hide();
  11. </script>
  12. <?php
  13. }
  14. }
  15.  
  16.  
  17.  
  18.  
  19. /** Custom CSS for Event Submission Form
  20. -----------------------------------------------------------*/
  21. add_action( 'wp_head', 'community_add_css' );
  22. function community_add_css() {
  23. if (tribe_is_community_edit_event_page() || tribe_is_community_my_events_page()) {
  24. ?>
  25. <style>
  26. /* PUT YOUR CSS HERE FOR CUSTOMIZATIONS */
  27. #event_taxonomy {display:none !important;}
  28.  
  29. #tribe-community-events .tribe-events-community-footer, #tribe-community-events p.login-submit {
  30. text-align:left !important;
  31. }
  32. #post.button.submit.events-community-submit {
  33. display:block;
  34. text-decoration: none;
  35. text-indent: -1000000em;
  36. background:url("http://www.sciotomile.com/wp-content/themes/sciotomile2011/tribe-events/SubmitEvent_bttn.png") top right no-repeat;
  37. width: 128px;
  38. height: 38px;
  39. border: 0px inset !important;
  40. }
  41.  
  42. #post.button.submit.events-community-submit:hover {
  43. background:url("http://www.sciotomile.com/wp-content/themes/sciotomile2011/tribe-events/SubmitEvent_bttn.png");
  44. background-position: 0px 76px;
  45. border: 0px inset !important;
  46. }
  47.  
  48. #post.button.submit.events-community-submit:active {
  49. background:url("http://www.sciotomile.com/wp-content/themes/sciotomile2011/tribe-events/SubmitEvent_bttn.png");
  50. background-position: 0px 38px;
  51. border: 0px inset !important;
  52. }
  53. #tribe-community-events .events-community-post-content textarea {
  54. clear: both;
  55. width: 574px !important;
  56. max-width: 574px;
  57. height: 230px;
  58. resize: vertical;
  59. }
  60.  
  61. </style>
  62. <?php
  63. }
  64. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement