Pārlūkot izejas kodu

Add ‘wp_body_open’ hook to Varia Child themes

RE: #1722 all themes should have the wp_body_open() call made
immediately after the body is opened.

https://make.wordpress.org/themes/2019/03/29/addition-of-new-wp_body_open-hook

This change adds that support to all of the Varia child themes that have
a custom header.  (Varia parent theme had already been enhanced.)
Jason Crist 4 gadi atpakaļ
vecāks
revīzija
e7bc0b3bab

+ 7 - 0
balasana/header.php

@@ -20,6 +20,13 @@
 </head>
 
 <body <?php body_class(); ?>>
+
+<?php
+	if ( function_exists( 'wp_body_open' ) ) {
+		wp_body_open();
+	}
+?>
+	
 <div id="page" class="site">
 	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'balasana' ); ?></a>
 

+ 7 - 0
coutoire/header.php

@@ -20,6 +20,13 @@
 </head>
 
 <body <?php body_class(); ?>>
+
+<?php
+	if ( function_exists( 'wp_body_open' ) ) {
+		wp_body_open();
+	}
+?>
+	
 <div id="page" class="site">
 	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'varia' ); ?></a>
 

+ 7 - 0
dalston/header.php

@@ -20,6 +20,13 @@
 </head>
 
 <body <?php body_class(); ?>>
+
+<?php
+	if ( function_exists( 'wp_body_open' ) ) {
+		wp_body_open();
+	}
+?>
+	
 <div id="page" class="site">
 	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'varia' ); ?></a>
 

+ 7 - 0
morden/header.php

@@ -20,6 +20,13 @@
 </head>
 
 <body <?php body_class(); ?>>
+
+<?php
+	if ( function_exists( 'wp_body_open' ) ) {
+		wp_body_open();
+	}
+?>
+	
 <div id="page" class="site">
 	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'varia' ); ?></a>
 

+ 7 - 0
rivington/header.php

@@ -20,6 +20,13 @@
 </head>
 
 <body <?php body_class(); ?>>
+
+<?php
+	if ( function_exists( 'wp_body_open' ) ) {
+		wp_body_open();
+	}
+?>
+	
 <div id="page" class="site">
 	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'rivington' ); ?></a>
 

+ 7 - 0
rockfield/header.php

@@ -20,6 +20,13 @@
 </head>
 
 <body <?php body_class(); ?>>
+
+<?php
+	if ( function_exists( 'wp_body_open' ) ) {
+		wp_body_open();
+	}
+?>
+	
 <div id="page" class="site">
 	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'rockfield' ); ?></a>
 

+ 7 - 0
stow/header.php

@@ -20,6 +20,13 @@
 </head>
 
 <body <?php body_class(); ?>>
+
+<?php
+	if ( function_exists( 'wp_body_open' ) ) {
+		wp_body_open();
+	}
+?>
+	
 <div id="page" class="site">
 	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'varia' ); ?></a>
 

+ 7 - 0
stratford/header.php

@@ -20,6 +20,13 @@
 </head>
 
 <body <?php body_class(); ?>>
+
+<?php
+	if ( function_exists( 'wp_body_open' ) ) {
+		wp_body_open();
+	}
+?>
+	
 <div id="page" class="site">
 	<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'varia' ); ?></a>