Make WordPress Themes

source: astra/4.5.1/header.php

Last change on this file was 198407, checked in by themedropbox, 2 years ago

New version of Astra - 4.1.7

File size: 1.5 KB
Line 
1<?php
2/**
3 * The header for Astra 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 Astra
10 * @since 1.0.0
11 */
12
13if ( ! defined( 'ABSPATH' ) ) {
14        exit; // Exit if accessed directly.
15}
16
17?><!DOCTYPE html>
18<?php astra_html_before(); ?>
19<html <?php language_attributes(); ?>>
20<head>
21<?php astra_head_top(); ?>
22<meta charset="<?php bloginfo( 'charset' ); ?>">
23<meta name="viewport" content="width=device-width, initial-scale=1">
24<?php 
25if ( apply_filters( 'astra_header_profile_gmpg_link', true ) ) {
26        ?>
27         <link rel="profile" href="https://gmpg.org/xfn/11">
28         <?php
29} 
30?>
31<?php wp_head(); ?>
32<?php astra_head_bottom(); ?>
33</head>
34
35<body <?php astra_schema_body(); ?> <?php body_class(); ?>>
36<?php astra_body_top(); ?>
37<?php wp_body_open(); ?>
38
39<a
40        class="skip-link screen-reader-text"
41        href="#content"
42        role="link"
43        title="<?php echo esc_attr( astra_default_strings( 'string-header-skip-link', false ) ); ?>">
44                <?php echo esc_html( astra_default_strings( 'string-header-skip-link', false ) ); ?>
45</a>
46
47<div
48<?php
49        echo astra_attr(
50                'site',
51                array(
52                        'id'    => 'page',
53                        'class' => 'hfeed site',
54                )
55        );
56        ?>
57>
58        <?php
59        astra_header_before();
60
61        astra_header();
62
63        astra_header_after();
64
65        astra_content_before();
66        ?>
67        <div id="content" class="site-content">
68                <div class="ast-container">
69                <?php astra_content_top(); ?>
Note: See TracBrowser for help on using the repository browser.