Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /** Hides Category Selection Option on Submission Form
- -----------------------------------------------------------*/
- add_action( 'wp_footer', 'community_add_javascript' );
- function community_add_javascript() {
- if (tribe_is_community_edit_event_page()) {
- ?>
- <script type="text/javascript">
- //Hide categories
- jQuery('.tribe-community-event-details:first').hide();
- </script>
- <?php
- }
- }
- /** Custom CSS for Event Submission Form
- -----------------------------------------------------------*/
- add_action( 'wp_head', 'community_add_css' );
- function community_add_css() {
- if (tribe_is_community_edit_event_page() || tribe_is_community_my_events_page()) {
- ?>
- <style>
- /* PUT YOUR CSS HERE FOR CUSTOMIZATIONS */
- #event_taxonomy {display:none !important;}
- #tribe-community-events .tribe-events-community-footer, #tribe-community-events p.login-submit {
- text-align:left !important;
- }
- #post.button.submit.events-community-submit {
- display:block;
- text-decoration: none;
- text-indent: -1000000em;
- background:url("http://www.sciotomile.com/wp-content/themes/sciotomile2011/tribe-events/SubmitEvent_bttn.png") top right no-repeat;
- width: 128px;
- height: 38px;
- border: 0px inset !important;
- }
- #post.button.submit.events-community-submit:hover {
- background:url("http://www.sciotomile.com/wp-content/themes/sciotomile2011/tribe-events/SubmitEvent_bttn.png");
- background-position: 0px 76px;
- border: 0px inset !important;
- }
- #post.button.submit.events-community-submit:active {
- background:url("http://www.sciotomile.com/wp-content/themes/sciotomile2011/tribe-events/SubmitEvent_bttn.png");
- background-position: 0px 38px;
- border: 0px inset !important;
- }
- #tribe-community-events .events-community-post-content textarea {
- clear: both;
- width: 574px !important;
- max-width: 574px;
- height: 230px;
- resize: vertical;
- }
- </style>
- <?php
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement