• Skip to main content
  • Skip to forum navigation

StudioPress

  • Shop for Themes
  • My StudioPress

Forum navigation

  • Home
  • General Genesis Discussions
  • StudioPress Themes
  • Genesis Blocks
    • Genesis Blocks
    • Genesis Custom Blocks
  • Retired Themes
  • FAQs
  • Forum Rules
  • Internationalization and Translations
  • Forum Bugs and Suggestions
  • Forum Log In

Are You Using The WordPress Block Editor?

Genesis now offers plugins that help you build better sites faster with the WordPress block editor (Gutenberg). Try the feature-rich free versions of each plugin for yourself!

Genesis Blocks Genesis Custom Blocks

Header.php crash

Welcome!

These forums are for general discussion on WordPress and Genesis. Official support for StudioPress themes is offered exclusively at My StudioPress. Responses in this forum are not guaranteed. Please note that this forum will require a new username, separate from the one used for My.StudioPress.

Log In
Register Lost Password

Community Forums › Forums › Archived Forums › General Discussion › Header.php crash

This topic is: not resolved

Tagged: header.php

  • This topic has 3 replies, 3 voices, and was last updated 7 years, 8 months ago by Brad Dalton.
Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • June 27, 2018 at 3:32 pm #221166
    david19
    Member

    Hello Genesis team,

    I use the elevenpro child theme.
    I made add a adsense code to genesis/header.php

    After that my header.php crash. But i made a backup before. I uploaded via ftp, but its work not 🙁 And i go to wp-admin/design/editor/genesis/header.php and this file show me "empty".............I can see the Original via FTP, but not in admin panel.
    I dont know where is the error.

    This wars my Original genesis header.php

    
    <?php
    /**
     * Genesis Framework.
     *
     * WARNING: This file is part of the core Genesis Framework. DO NOT edit this file under any circumstances.
     * Please do all modifications in the form of a child theme.
     *
     * @package Genesis\Templates
     * @author  StudioPress
     * @license GPL-2.0+
     * @link    https://my.studiopress.com/themes/genesis/
     */
    
    /**
     * Fires at start of header.php, immediately before <code>genesis_title</code> action hook to render the Doctype content.
     *
     * @since 1.3.0
     */
    do_action( 'genesis_doctype' );
    
    /**
     * Fires immediately after <code>genesis_doctype</code> action hook, in header.php to render the document title.
     *
     * @since 1.0.0
     */
    do_action( 'genesis_title' );
    
    /**
     * Fires immediately after <code>genesis_title</code> action hook, in header.php to render the meta elements.
     *
     * @since 1.0.0
     */
    do_action( 'genesis_meta' );
    
    wp_head(); // We need this for plugins.
    ?>
    </head>
    <?php
    genesis_markup( array(
    	'open'    => '<body %s>',
    	'context' => 'body',
    ) );
    
    /**
     * Fires immediately after the body element opening markup.
     *
     * @since 1.0.0
     */
    do_action( 'genesis_before' );
    
    genesis_markup( array(
    	'open'    => '<div %s>',
    	'context' => 'site-container',
    ) );
    
    /**
     * Fires immediately after the site container opening markup, before <code>genesis_header</code> action hook.
     *
     * @since 1.0.0
     */
    do_action( 'genesis_before_header' );
    
    /**
     * Fires to display the main header content.
     *
     * @since 1.0.2
     */
    do_action( 'genesis_header' );
    
    /**
     * Fires immediately after the <code>genesis_header</code> action hook, before the site inner opening markup.
     *
     * @since 1.0.0
     */
    do_action( 'genesis_after_header' );
    
    genesis_markup( array(
    	'open'    => '<div %s>',
    	'context' => 'site-inner',
    ) );
    genesis_structural_wrap( 'site-inner' );
    
    https://extrem16.de
    June 27, 2018 at 5:57 pm #221170
    AnitaC
    Keymaster

    You shouldn't try to modify Core files. If you want to add something like ads, create a custom widget area, create custom code for what you want using the correct hook. Or you can use Genesis Simple Hooks - https://wordpress.org/plugins/genesis-simple-hooks/.


    Need help with customization or troubleshooting? Reach out to me.

    June 27, 2018 at 8:46 pm #221177
    david19
    Member

    Many thanks, But why i see the Original header.php via ftp server?
    What can i do now`?

    June 30, 2018 at 3:39 am #221241
    Brad Dalton
    Participant

    Upload a new copy of Genesis.


    Tutorials for StudioPress Themes.

  • Author
    Posts
Viewing 4 posts - 1 through 4 (of 4 total)
  • The forum ‘General Discussion’ is closed to new topics and replies.

CTA

Ready to get started? Create a site or shop for themes.

Create a site with WP EngineShop for Themes

Footer

StudioPress

© 2026 WPEngine, Inc.

Products
  • Create a Site with WP Engine
  • Shop for Themes
  • Theme Features
  • Get Started
  • Showcase
Company
  • Brand Assets
  • Terms of Service
  • Accptable Usse Policy
  • Privacy Policy
  • Refund Policy
  • Contact Us
Community
  • Find Developers
  • Forums
  • Facebook Group
  • #GenesisWP
  • Showcase
Resources
  • StudioPress Blog
  • Help & Documentation
  • FAQs
  • Code Snippets
  • Affiliates
Connect
  • StudioPress Live
  • StudioPress FM
  • Facebook
  • Twitter
  • Dribbble