Created
June 21, 2017 20:09
-
-
Save andrasguseo/238542e36ac9ed246aa40653fc7391a0 to your computer and use it in GitHub Desktop.
Changing styles of popup modal for low res screens
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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