Skip to content

Instantly share code, notes, and snippets.

@SitesByYogi
Last active March 14, 2022 13:37
Show Gist options
  • Save SitesByYogi/8bc2ce663e167be13c7ee1d52309dac6 to your computer and use it in GitHub Desktop.
Save SitesByYogi/8bc2ce663e167be13c7ee1d52309dac6 to your computer and use it in GitHub Desktop.
Adds class to bg header
// Invoking core hook for plugins to hook first in place on the body content. Ref: https://core.trac.wordpress.org/ticket/46679.
do_action( 'wp_body_open' ); // phpcs:ignore WordPress.NamingConventions.PrefixAllGlobals.NonPrefixedHooknameFound
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'crio' ); ?></a>
<?php do_action( 'boldgrid_header_before' ); ?>
<div <?php BoldGrid::add_class( 'site_header', array( 'bgtfw-header', 'site-header' ) ); ?>>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment