• Resolved joshuayunker

    (@joshuayunker)


    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,
    [email protected]

Viewing 1 replies (of 1 total)
  • Theme Author acosmin

    (@acosmin)

    Go to this link, 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.