Title: Fix Header.php
Last modified: August 22, 2016

---

# Fix Header.php

 *  Resolved [joshuayunker](https://wordpress.org/support/users/joshuayunker/)
 * (@joshuayunker)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/fix-headerphp/)
 * I accidently messed up my header.php file causing a fatal error, I still want
   to use this theme, but lost the code that I deleted. I think that a full copy
   of an original header.php file for JustWrtie theme would work best because I 
   removed code from several places in an attempt to remove the social icons.
 * Please help,
    [yunker.joshua@yahoo.com](https://wordpress.org/support/topic/fix-headerphp/yunker.joshua@yahoo.com?output_format=md)

Viewing 1 replies (of 1 total)

 *  Theme Author [acosmin](https://wordpress.org/support/users/acosmin/)
 * (@acosmin)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/fix-headerphp/#post-5819658)
 * Go to [this link](https://themes.svn.wordpress.org/justwrite/1.0.6/header.php),
   copy all the lines. Then open `header.php`, delete its contentes and paste the
   copied lines.
 * To remove social icons you need to delete these lines from `header.php`:
 *     ```
       <ul class="header-social-icons clearfix">
       			<?php
       				// Social variables - Options Panel
       				$header_fb 	= of_get_option( 'ac_facebook_url' );
       				$header_tw 	= of_get_option( 'ac_twitter_username' );
       				$header_gp 	= of_get_option( 'ac_gplus_url' );
       				$header_rss = of_get_option( 'ac_custom_rss_url' );
   
       			?>
       			<?php if ( $header_tw != '' ) { ?><li><a href="https://twitter.com/<?php echo esc_html( $header_tw ); ?>" class="social-btn left twitter"><?php ac_icon('twitter'); ?></a></li><?php } ?>
       			<?php if ( $header_fb != '' ) { ?><li><a href="<?php echo esc_url( $header_fb ); ?>" class="social-btn right facebook"><?php ac_icon('facebook'); ?></a></li><?php } ?>
       			<?php if ( $header_gp != '' ) { ?><li><a href="<?php echo esc_url( $header_gp ); ?>" class="social-btn left google-plus"><?php ac_icon('google-plus'); ?></a></li><?php } ?>
       			<li><a href="<?php if( $header_rss != '' ) { echo esc_url( $header_rss ); } else { bloginfo( 'rss2_url' ); } ?>" class="social-btn right rss"><?php ac_icon('rss'); ?></a></li>
               </ul><!-- END .header-social-icons -->
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Fix Header.php’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/justwrite/2.0.3.6/screenshot.png)
 * JustWrite
 * [Support Threads](https://wordpress.org/support/theme/justwrite/)
 * [Active Topics](https://wordpress.org/support/theme/justwrite/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/justwrite/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/justwrite/reviews/)

## Tags

 * [header](https://wordpress.org/support/topic-tag/header/)
 * [header.php](https://wordpress.org/support/topic-tag/header-php/)

 * 1 reply
 * 2 participants
 * Last reply from: [acosmin](https://wordpress.org/support/users/acosmin/)
 * Last activity: [11 years, 2 months ago](https://wordpress.org/support/topic/fix-headerphp/#post-5819658)
 * Status: resolved