Last active
January 4, 2024 16:54
-
-
Save vielhuber/b2b5d70c8414996d44fa484c3fceeb05 to your computer and use it in GitHub Desktop.
logo headline h1 only on front page #html #php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="logo"> | |
<?= is_front_page() ? '<h1 class="logo__headline">' : '' ?> | |
<a class="logo__link" href="index.php"> | |
<span class="logo__text" style="position:absolute;width:1px;height:1px;overflow:hidden;">h1 der Startseite</span> | |
<img class="logo__image" src="logo.svg" alt="h1 der Startseite"> | |
</a> | |
<?= is_front_page() ? '</h1>' : '' ?> | |
</div> | |
<?= !is_front_page() ? ' | |
<h1>Hero-Modul auf Unterseite</h1> | |
... | |
' : '' ?> | |
<h2>Beliebiges weiteres Modul</h2> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment