fix: remove on 404

This commit is contained in:
Ben Goldsworthy 2021-04-07 07:28:21 +01:00
parent 19c863b007
commit 8234da161e
2 changed files with 6 additions and 2 deletions

View file

@ -8,7 +8,11 @@
?>
<footer id="site-footer" class="show">
<p>By <a href="/">Ben</a> | <?php if ( ! is_page('Hi.') && ! is_page('privacy-policy') ): ?><a href="https://github.com/Rumperuu/Omphaloskepsis/issues" target="_blank" rel="noopener noreferrer">Report an Issue</a> | <?php endif; ?><a href="/privacy-policy">Privacy Policy</a></p>
<p>By <a href="/">Ben</a> |
<?php
if ( ! is_page( 'Hi.' ) && ! is_page( 'privacy-policy' ) && ! is_404() ) :
?>
<a href="https://github.com/Rumperuu/Omphaloskepsis/issues" target="_blank" rel="noopener noreferrer">Report an Issue</a> | <?php endif; ?><a href="/privacy-policy">Privacy Policy</a></p>
</footer>
<script type="text/javascript">

View file

@ -28,7 +28,7 @@
</head>
<body <?php body_class(); ?> id="site-wrapper">
<?php if ( ! is_page_template( 'centred-page.php' ) ) : ?>
<?php if ( ! is_page_template( 'centred-page.php' ) && ! is_404() ) : ?>
<header id="site-header">
<nav id="site-header-nav">
<div class="site-header-nav-item"><a href="/"><h1>Ben Goldsworthy</a></div>