Text won't display in header after putting text in header.php file

  • Hi, I am trying to put text on my header section. I placed some text into my header.php file, but it won’t show on my page. Would anybody know, what I am doing wrong. This is what I did. I placed the text in between the <head> in header.php file in a child theme:

    if ( ! defined( ‘ABSPATH’ ) ) {
    exit; // Exit if accessed

    directly.
    }

    ?><!DOCTYPE html>
    <?php astra_html_before(); ?>

    <html <?php language_attributes(); ?>>

    <head>
    <?php astra_head_top(); ?>

    <meta charset=”<?php bloginfo( ‘charset’ ); ?>”>

    <meta name=”viewport” content=”width=device-width, initial-

    scale=1″>

    <link rel=”profile” href=”https://gmpg.org/xfn/11″>

    <?php wp_head(); ?>
    <?php astra_head_bottom(); ?>

    <h1>Welcome to leathercraft</h1></head>

    <body <?php

    astra_schema_body(); ?> <?php body_class(); ?>>

    <?php astra_body_top(); ?>

    <?php wp_body_open(); ?>

    <div
    <?php
    echo astra_attr(
    ‘site’,

    array(
    ‘id’ => ‘page’,

    ‘class’ => ‘hfeed site’,
    )
    );

    ?>
    >


    <?php echo esc_html( astra_default_strings( ‘string-header-

    skip-link’, false ) ); ?>

    <?php
    astra_header_before();

    astra_header();

    astra_header_after();

    astra_content_before();

    ?>

    <div id=”content” class=”site-content”>
    <div

    class=”ast-container”>

    <?php astra_content_top(); ?>

    The blog I need help with is: (visible only to logged in users)

  • Hi there,

    What is the address of the site you are referring to? This isn’t for artandleatherspencer.wordpress.com, correct?

    Please note that these forums are for WordPress.com-hosted sites only. If your site is using the open-source WordPress.org software, we won’t be able to provide direct assistance because we do not have direct access to any site hosted outside of WordPress.com. You’ll want to seek assistance in the dotorg forums:

    https://wordpress.org/support/forums/

  • The topic ‘Text won't display in header after putting text in header.php file’ is closed to new replies.