Skip to content

Instantly share code, notes, and snippets.

@barryhughes
Created May 5, 2015 14:27
Show Gist options
  • Save barryhughes/ed8b4fb340fe73e16449 to your computer and use it in GitHub Desktop.
Save barryhughes/ed8b4fb340fe73e16449 to your computer and use it in GitHub Desktop.
Fix odd issue with APM/pro admin styles blocking out subsubsub links in mobile (ECP 3.9.3)
add_action( 'admin_print_styles', 'tribe_fix_apm_search_issue_mobile' );
function tribe_fix_apm_search_issue_mobile() {
global $pagenow, $post;
if ( ! class_exists( 'TribeEvents' ) || ! class_exists( 'TribeEventsPro' ) ) return;
if ( 'edit.php' !== $pagenow && TribeEvents::POSTTYPE !== get_post_type( $post ) ) return;
echo '
<style>
#posts-filter p.search-box {
position: static;
padding-bottom: 2rem;
}
</style>
';
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment