Browse Source

removed header background image call

dev
ppound 2 years ago
parent
commit
dd035c050c
  1. 25
      header.php

25
header.php

@ -45,24 +45,25 @@ use function Aldine\Helpers\custom_homepage;
</svg> </svg>
<div id="page" class="site"> <div id="page" class="site">
<a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'pressbooks-aldine' ); ?></a> <a class="skip-link screen-reader-text" href="#content"><?php esc_html_e( 'Skip to content', 'pressbooks-aldine' ); ?></a>
<header class="header" role="banner" style="background-image: url( //<header class="header" role="banner" style="background-image: url(
<?php <?php
$header = '<header class="header" role="banner"';
if ( has_post_thumbnail() ) { if ( has_post_thumbnail() ) {
echo get_the_post_thumbnail_url(); echo $header . 'style="background-image: url('.get_the_post_thumbnail_url().')>';
} else { } else {
if ( is_front_page() ) { echo $header . '>';
if ( has_header_image() ) { //if ( is_front_page() ) {
echo( get_header_image() ); // if ( has_header_image() ) {
} else { // echo ' '; //( get_header_image() );
echo get_template_directory_uri() . '/dist/images/header.jpg'; // } else {
} // echo ' '; //get_template_directory_uri() . '/dist/images/header.jpg';
} else { // }
echo get_template_directory_uri() . '/dist/images/catalog-header.jpg'; // } else {
} // echo ' ';//get_template_directory_uri() . '/dist/images/catalog-header.jpg';
// }
} }
?> ?>
);">
<div class="header__inside"> <div class="header__inside">
<div class="header__brand"> <div class="header__brand">
<a title="<?php echo get_bloginfo( 'name', 'display' ); ?>" href="<?php echo network_home_url(); ?>"> <a title="<?php echo get_bloginfo( 'name', 'display' ); ?>" href="<?php echo network_home_url(); ?>">

Loading…
Cancel
Save