Skip to content

Commit

Permalink
echo header/footer scripts from customizer
Browse files Browse the repository at this point in the history
  • Loading branch information
gregrickaby committed Jul 21, 2017
1 parent 11f608d commit 887b9c6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions footer.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
</div><!-- #page -->

<?php wp_footer(); ?>
<?php echo force_balance_tags( get_theme_mod( '_s_footer_scripts' ) ); // WPCS XSS OK. ?>

<nav class="off-canvas-container" aria-hidden="true">
<button type="button" class="off-canvas-close" aria-label="<?php esc_html_e( 'Close Menu', '_s' ); ?>">
Expand Down
6 changes: 4 additions & 2 deletions header.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,8 @@
<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>">

<?php wp_head(); ?>
<?php echo force_balance_tags( get_theme_mod( '_s_header_scripts' ) ); // WPCS XSS OK. ?>

</head>

<body <?php body_class(); ?>>
Expand All @@ -38,8 +40,8 @@
<?php endif; ?>

<?php
$description = get_bloginfo( 'description', 'display' );
if ( $description || is_customize_preview() ) :
$description = get_bloginfo( 'description', 'display' );
if ( $description || is_customize_preview() ) :
?>
<p class="site-description"><?php echo esc_html( $description ); ?></p>
<?php endif; ?>
Expand Down

0 comments on commit 887b9c6

Please sign in to comment.