/ header.php
header.php
1 <!DOCTYPE html> 2 <html <?php language_attributes() ?>> 3 4 <head> 5 <meta name="viewport" content="width=device-width, initial-scale=1"> 6 <meta name="description" content="Website der Bibliothek Schmerikon."> 7 <link rel="preload" href="<?php echo get_theme_file_uri("fonts/Inter-Regular.woff2") ?>" as="font" type="font/woff2" crossorigin="anonymous" /> 8 <link rel="preload" href="<?php echo get_theme_file_uri("fonts/Inter-Medium.woff2") ?>" as="font" type="font/woff2" crossorigin="anonymous" /> 9 <link rel="preload" href="<?php echo get_theme_file_uri("fonts/Inter-SemiBold.woff2") ?>" as="font" type="font/woff2" crossorigin="anonymous" /> 10 <link rel="preload" href="<?php echo get_theme_file_uri("fonts/Inter-Bold.woff2") ?>" as="font" type="font/woff2" crossorigin="anonymous" /> 11 <?php wp_head(); ?> 12 </head> 13 14 <body <?php body_class(); ?>> 15 <header class="max-w-7xl mx-auto w-full flex justify-between px-4 py-2 text-right lg:items-center"> 16 <a href="/" aria-label="Zurück zur Hauptseite"> 17 <img class="h-16" alt="bibliotheks logo" src="<?php echo get_theme_file_uri("images/logo.png") ?>" /> 18 </a> 19 <?php 20 wp_nav_menu(array( 21 "container" => NULL, 22 "menu_class" => "flex flex-col lg:flex-row py-4 lg:gap-8", 23 "theme_location" => "headerMenuLocation", 24 )) 25 ?> 26 </header>