-
AuthorPosts
-
March 28th, 2015 at 23:19 #30935Evelin
Under “appearance > editor > footer php” I accidentally deleted a line of code near the bottom. It was something like “php content wordpress”. I was trying to delete powered by wordpress, but now my website is completely crazy. I updated the file, and cant find a way to undo it.
Is there any way I can undo it
Or would someone be able to give me a snipet of the footer php code for the Nirvana theme?
March 30th, 2015 at 10:24 #30963MikevZYou could download the theme as .ZIP, then extract theme-functions.php in Nirvana\Includes\ and replace this file with your modified version.
The snippet(s) you’ve probably modified originally looks like this:
/** * Site info */ function nirvana_site_info() { $nirvanas = nirvana_get_theme_options(); foreach ($nirvanas as $key => $value) { ${"$key"} = $value ; } ?> <em style="display:table;margin:0 auto;float:none;text-align:center;padding:7px 0;font-size:13px;"> <?php _e('Powered by','nirvana')?> <a target="_blank" href="<?php echo 'http://www.cryoutcreations.eu';?>" title="<?php echo 'Nirvana Theme by '. 'Cryout Creations';?>"><?php echo 'Nirvana' ?></a> & <a target="_blank" href="<?php echo esc_url('http://wordpress.org/' ); ?>" title="<?php esc_attr_e('Semantic Personal Publishing Platform', 'nirvana'); ?>"> <?php printf(' %s.', 'WordPress' ); ?></a></em> <?php } // nirvana_site_info() add_action('cryout_footer_hook','nirvana_site_info',15); /** * Copyright text */ function nirvana_copyright() { $nirvanas = nirvana_get_theme_options(); foreach ($nirvanas as $key => $value) { ${"$key"} = $value ; } echo '<div id="site-copyright">'.$nirvana_copyright.'</div>'; } // nirvana_copyright()
March 31st, 2015 at 07:40 #30977EvelinThank you! I appreciate your help. I got it working.
-
AuthorPosts
The topic ‘Accidently deleted a line in Footer PHP. How do I undo it?’ is closed to new replies.