Last active
September 18, 2017 19:44
-
-
Save nefeline/1079de52e890fb403d4936e9554f6742 to your computer and use it in GitHub Desktop.
Add CSS only in Single Event Pages.
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 | |
/** | |
* This function adds specific CSS if the page is a Single Event. | |
*/ | |
if( tribe_is_event() && is_single() ) { | |
?> | |
<style type="text/css">.header_hor .l-subheader-h, .l-titlebar-h, .l-main-h, .l-section-h, .l-subfooter-h, .w-tabs-section-content-h, .w-blog-post-body { | |
max-width: 1140px !important; | |
}</style> | |
<?php | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment