Created
November 4, 2015 05:09
-
-
Save UVLabs/120e2435d4c08b57ec00 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
/** | |
* Change styles applied to one page | |
* | |
* Uses 'wp' to run after WP class object so page content is available | |
*/ | |
function sv_hide_header_footer_for_page() { | |
if( is_page( 2576 ) ) { | |
?> <style> | |
header#header, | |
div.footer-widgets { display:none; } | |
</style> | |
<?php | |
} | |
} | |
add_action( 'wp', 'sv_hide_header_footer_for_page' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment