Created
July 20, 2022 18:51
-
-
Save tdmrhn/4bc1c4b05c2756410703bd85ab0d1d77 to your computer and use it in GitHub Desktop.
Blocksy Remove Customizer Preview Iframe Padding
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 | |
add_action( 'print_head_scripts', function () { | |
echo '<style>'; | |
echo '.preview-desktop #customize-preview { padding: 0 !important }'; | |
echo '.preview-desktop #customize-preview iframe { width: 100%; height: 100% }'; | |
echo '</style>'; | |
} ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment