Sacconi69

header.php

Oct 16th, 2024
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.35 KB | None | 0 0
  1. <?php
  2. /**
  3. * The header for our theme
  4. *
  5. * This is the template that displays all of the <head> section and everything up until <div id="content">
  6. *
  7. * @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
  8. *
  9. * @package sacconicase
  10. */
  11.  
  12. ?>
  13. <!doctype html>
  14. <html <?php language_attributes(); ?>>
  15. <head>
  16. <meta charset="<?php bloginfo( 'charset' ); ?>">
  17. <meta name="viewport" content="width=device-width, initial-scale=1">
  18. <link rel="profile" href="https://gmpg.org/xfn/11">
  19.  
  20. <?php wp_head(); ?>
  21. <link rel="preload" as="image" href="https://test.sacconicase.com/wp-content/uploads/2024/10/cercaefiltra-57web.jpg">
  22. </head>
  23.  
  24. <body <?php body_class(); ?>>
  25. <?php wp_body_open(); ?>
  26. <div id="page" class="site">
  27. <a class="skip-link screen-reader-text" href="#primary"><?php esc_html_e( 'Skip to content', 'sacconicase' ); ?></a>
  28.  
  29. <header id="masthead" class="site-header">
  30. <div class="site-branding">
  31. <?php
  32. the_custom_logo();
  33. if ( is_front_page() && is_home() ) :
  34. ?>
  35.  
  36.  
  37.  
  38. <h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
  39. <?php
  40. else :
  41. ?>
  42. <p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
  43. <?php
  44. endif;
  45. $sacconicase_description = get_bloginfo( 'description', 'display' );
  46. if ( $sacconicase_description || is_customize_preview() ) :
  47. ?>
  48. <p class="site-description"><?php echo $sacconicase_description; // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped ?></p>
  49. <?php endif; ?>
  50. </th><th><button class="menu-toggle" aria-controls="primary-menu" aria-expanded="false"><?php esc_html_e( 'Primary Menu', 'sacconicase' ); ?></button>
  51.  
  52. <span class="testata">
  53.  
  54. <?php wp_nav_menu(['menu' => 'My Custom Menu',]); ?>
  55.  
  56. </span>
  57.  
  58. </div><!-- .site-branding -->
  59.  
  60. <nav id="site-navigation" class="main-navigation">
  61.  
  62. </nav><!-- #site-navigation -->
  63.  
  64. </header><!-- #masthead -->
  65.  
  66.  
  67.  
  68. <!-- Google tag (gtag.js) -->
  69. <script async src="https://www.googletagmanager.com/gtag/js?id=AW-1071732040">
  70. </script>
  71. <script>
  72. window.dataLayer = window.dataLayer || [];
  73. function gtag(){dataLayer.push(arguments);}
  74. gtag('js', new Date());
  75.  
  76. gtag('config', 'AW-1071732040');
  77. </script>
  78.  
  79.  
  80.  
  81.  
  82.  
  83.  
  84.  
  85.  
Advertisement
Add Comment
Please, Sign In to add comment