Skip to content

Instantly share code, notes, and snippets.

@andrasguseo
Created June 21, 2017 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save andrasguseo/238542e36ac9ed246aa40653fc7391a0 to your computer and use it in GitHub Desktop.
Save andrasguseo/238542e36ac9ed246aa40653fc7391a0 to your computer and use it in GitHub Desktop.
Changing styles of popup modal for low res screens
<?php
/*
* Change the style of the modal popup to make it readable on low res screens
* Paste the below snippet into your theme's functions.php file
*
* Plugins: The Events Calendar, Event Tickets
* Author: Andras Guseo
* Last updated: June 21, 2017
*/
function etp_popup_style_override() {
global $pagenow;
// Check if we are on the attendee list of an event
if ( ( $pagenow == 'edit.php' ) && ( $_GET['post_type'] == 'tribe_events') && ( $_GET['page'] == 'tickets-attendees') ) {
?>
<style>
@media screen and (max-device-width: <?php echo tribe_get_mobile_breakpoint()?>px) {
#plugin-information-title {
font-size: 16px;
line-height: 32px;
height: 32px;
}
#attendees_email_wrapper {
margin-top: 0px;
}
#attendees_email_wrapper .attendees_or {
margin-top: 5px;
margin-bottom: 5px;
}
}
</style>
<?php
}
}
add_action( 'admin_head', 'etp_popup_style_override' );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment