title: Finding custom-header.php in file manage on Wordpress Penscratch theme
body: <p>My website is www.rosstheexplorer.com. </p>
  
  <p>I use Wordpress. I use the Penscratch theme. I have never consciously tweaked / altered file manager. </p>
  
  <p>I made a change  to the custom-header.php and that change has caused me to be unable to load my site.</p>
  
  <p>My webhost (Bluehost) said they could restore the file on file manager if I could tell them the directory for the file. </p>
  
  <p>I have no idea what the directory is. I have always accessed the PHP files through Customise -> Appearance -> Editor. </p>
  
  <p>Now I can no longer access Editor or Dashboard, my error has resulted in me being blocked from my site.</p>
  
  <p>Can someone who has knowledge of the theme tell me where the custom-header.php file is kept?</p>
  
  <p>The Bluehost customer service adviser earlier said </p>
  
  <p>'I can see wp-blog-header.php but not custom-header.php.'</p>
  
  <p>Last night I made a change to the custom-header.php file</p>
  
  <p>The code was </p>
  
  <pre><code>&lt;?php
  /**
   *
   * @package Penscratch
   */
  
  /**
   * Setup the WordPress core custom header feature.
   *
   * @uses penscratch_header_style()
   * @uses penscratch_admin_header_style()
   * @uses penscratch_admin_header_image()
   */
  function penscratch_custom_header_setup() {
      add_theme_support( 'custom-header', apply_filters( 'penscratch_custom_header_args', array(
          'default-image'          =&gt; '',
          'default-text-color'     =&gt; '666666',
          'width'                  =&gt; 937,
          'height'                 =&gt; 300,
          'flex-height'            =&gt; true,
          'wp-head-callback'       =&gt; 'penscratch_header_style',
          'admin-head-callback'    =&gt; 'penscratch_admin_header_style',
          'admin-preview-callback' =&gt; 'penscratch_admin_header_image',
      ) ) );
  }
  add_action( 'after_setup_theme', 'penscratch_custom_header_setup' );
  
  if ( ! function_exists( 'penscratch_header_style' ) ) :
  /**
   * Styles the header image and text displayed on the blog
   *
   * @see penscratch_custom_header_setup().
   */
  function penscratch_header_style() {
      $header_text_color = get_header_textcolor();
  
      // If no custom options for text are set, let's bail
      // get_header_textcolor() options: HEADER_TEXTCOLOR is default, hide text (returns 'blank') or any hex value
      if ( HEADER_TEXTCOLOR == $header_text_color ) {
          return;
      }
  
      // If we get this far, we have custom styles. Let's do this.
      ?&gt;
      &lt;style type="text/css"&gt;
      &lt;?php
          // Has the text been hidden?
          if ( 'blank' == $header_text_color ) :
      ?&gt;
          .site-title,
          .site-description {
              position: absolute;
              clip: rect(1px, 1px, 1px, 1px);
          }
      &lt;?php
          // If the user has set a custom color for the text use that
          else :
      ?&gt;
          .site-title a {
              color: #&lt;?php echo $header_text_color; ?&gt;;
          }
      &lt;?php endif; ?&gt;
      &lt;/style&gt;
      &lt;?php
  }
  endif; // penscratch_header_style
  
  if ( ! function_exists( 'penscratch_admin_header_style' ) ) :
  /**
   * Styles the header image displayed on the Appearance &gt; Header admin panel.
   *
   * @see penscratch_custom_header_setup().
   */
  function penscratch_admin_header_style() {
  ?&gt;
      &lt;style type="text/css"&gt;
          .appearance_page_custom-header #headimg {
              background: white;
              border: none;
              font-family: "Roboto Slab", Georgia, Times, serif;
              font-size: 15px;
              max-width: 1092px;
          }
          #headimg .site-branding-wrapper {
              border-bottom: 3px solid #eeeeee;
              margin: 0 0 27px;
              padding: 0 0 24px;
          }
          #headimg .site-branding-wrapper:before,
          #headimg .site-branding-wrapper:after {
              content: "";
              display: table;
          }
          #headimg .site-branding-wrapper:after {
              clear: both;
          }
          #headimg .site-branding {
              clear: both;
              margin-top: 54px;
              margin-bottom: 14px;
              text-align: center;
          }
          #headimg h1 {
              clear: none;
              display: inline-block;
              font-size: 1.75em;
              font-weight: normal;
              letter-spacing: 1px;
              line-height: 1;
              margin: 0;
          }
          #headimg a {
              text-decoration: none;
          }
          #desc {
              color: #999 !important;
              font-size: 16px;
              font-weight: 300;
              margin: 13px auto;
          }
          #headimg .site-logo {
              max-height: 150px;
              width: auto;
              display: block;
              margin: 0 auto 27px;
          }
          #headimg .custom-header {
              border-radius: 5px;
              display: block;
              margin: 0 auto;
              margin-bottom: 27px;
              max-width: 100%;
              height: auto;
  min-height:100px;
          }
      &lt;/style&gt;
  &lt;?php
  }
  endif; // penscratch_admin_header_style
  
  if ( ! function_exists( 'penscratch_admin_header_image' ) ) :
  /**
   * Custom header image markup displayed on the Appearance &gt; Header admin panel.
   *
   * @see penscratch_custom_header_setup().
   */
  function penscratch_admin_header_image() {
      $style = sprintf( ' style="color:#%s;"', get_header_textcolor() );
  ?&gt;
      &lt;div id="headimg"&gt;
          &lt;div class="site-branding-wrapper"&gt;
              &lt;div class="site-branding"&gt;
                  &lt;?php if ( function_exists( 'jetpack_the_site_logo' ) ) jetpack_the_site_logo(); ?&gt;
                  &lt;h1 class="displaying-header-text"&gt;&lt;a id="name"&lt;?php echo $style; ?&gt; onclick="return false;" href="&lt;?php echo esc_url( home_url( '/' ) ); ?&gt;"&gt;&lt;?php bloginfo( 'name' ); ?&gt;&lt;/a&gt;&lt;/h1&gt;
                  &lt;div class="displaying-header-text" id="desc"&lt;?php echo $style; ?&gt;&gt;&lt;?php bloginfo( 'description' ); ?&gt;&lt;/div&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;?php if ( get_header_image() ) : ?&gt;
          &lt;img src="&lt;?php header_image(); ?&gt;" alt="" class="custom-header"&gt;
          &lt;?php endif; ?&gt;
      &lt;/div&gt;
  &lt;?php
  }
  endif; // penscratch_admin_header_image
  </code></pre>
  
  <p>I changed </p>
  
  <pre><code>  'width'                  =&gt; 937,
  </code></pre>
  
  <p>to </p>
  
  <pre><code>  'width'                  = 100%,
  </code></pre>
  
  <p>I believe this is causing my massive issue. </p>