Try another fix!

This commit is contained in:
Fred Boniface 2022-10-29 21:22:07 +01:00
parent d4992014f8
commit 109ec874ef
2 changed files with 7 additions and 2 deletions

View File

@ -1,3 +1,5 @@
THIS FILE IS NOT CURRENTLY USED AND SHOULD BE DELETED AFTER TESTING
<picture id="header_face">
<source srcset="/images/headers/index/face-150.webp" type="image/webp">
<img src="/images/headers/index/face-100.webp" alt="Face image">

View File

@ -2,8 +2,11 @@
<div id="page_title" class="hide_micro">
<?php
if (strcmp($page_title, 'home') == 0){
include "./page-blocks/head-img-face.php";
} ?> <!-- THIS IS NOT WORKING. img-face IS NOT BEING INCLUDED!!! -->
echo '<picture id="header_face">';
echo '<source srcset="/images/headers/index/face-150.webp" type="image/webp">';
echo '<img src="/images/headers/index/face-100.webp" alt="Face image">';
echo '</picture>';
} ?> <!-- Moved from separate include to inline -->
<h1><?php echo ucwords($page_title); ?></h1>
</div>
</div>