Deleted footer.php - can anyone post the original php code please?

Hey. I’m super stupid and deleted my theme footer in editor (footer.php)

Can anyone copy paste the original footer php code or whatever u call it? My site crashed because it’s blank now.

  • Hope it will help to get my site back up.

Thanks !!


Here you go:


 * The template for displaying the footer.
 * Contains the closing of the #content div and all content after
 * @package Sydney
	</div><!-- #content -->

	<?php do_action('sydney_before_footer'); ?>

	<?php if ( is_active_sidebar( 'footer-1' ) ) : ?>
		<?php get_sidebar('footer'); ?>
	<?php endif; ?>

    <a class="go-top"><i class="fa fa-angle-up"></i></a>
	<footer id="colophon" class="site-footer" role="contentinfo">
		<div class="site-info container">
			<a href="<?php echo esc_url( __( '', 'sydney' ) ); ?>"><?php printf( __( 'Proudly powered by %s', 'sydney' ), 'WordPress' ); ?></a>
			<span class="sep"> | </span>
			<?php printf( __( 'Theme: %2$s by %1$s.', 'sydney' ), 'aThemes', '<a href="" rel="designer">Sydney</a>' ); ?>
		</div><!-- .site-info -->
	</footer><!-- #colophon -->

	<?php do_action('sydney_after_footer'); ?>

</div><!-- #page -->

<?php wp_footer(); ?>


Thank you so much Awan. Saved me hours of my life of re-work before my exam!! :slight_smile:

No problem :slight_smile:

Good luck!