Community Forums › Forums › Archived Forums › General Discussion › Header.php crash
Tagged: header.php
- This topic has 3 replies, 3 voices, and was last updated 6 years, 9 months ago by
Brad Dalton.
-
AuthorPosts
-
June 27, 2018 at 3:32 pm #221166
david19
MemberHello Genesis team,
I use the elevenpro child theme.
I made add a adsense code to genesis/header.phpAfter 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
https://extrem16.de<?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' );
June 27, 2018 at 5:57 pm #221170AnitaC
KeymasterYou 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 #221177david19
MemberMany thanks, But why i see the Original header.php via ftp server?
What can i do now`?June 30, 2018 at 3:39 am #221241Brad Dalton
Participant -
AuthorPosts
- The forum ‘General Discussion’ is closed to new topics and replies.