Title: Code showing on pages
Last modified: August 24, 2016

---

# Code showing on pages

 *  Resolved [Inkers92](https://wordpress.org/support/users/inkers92/)
 * (@inkers92)
 * [11 years ago](https://wordpress.org/support/topic/code-showing-on-pages/)
 * Hi all, My site works fine on localhost. However, when I upload it to my host
   a large block of code appears at the top of the page and even in the dashboard.
   I presume it is a missing tag or closure or something, but I have no idea where
   it is coming from. I have looked through the files but cannot find this code.
   Any tips or advice appreciated.
 * It starts like this:
 * ‘main’, ‘footer’ => ‘page’, ) );}add_action( ‘after_setup_theme’, ‘zerif_jetpack_setup’);
   tag based on what is being viewed. * * [@param](https://wordpress.org/support/users/param/)
   string $title Default title text for current view. * etc etc etc

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Thread Starter [Inkers92](https://wordpress.org/support/users/inkers92/)
 * (@inkers92)
 * [11 years ago](https://wordpress.org/support/topic/code-showing-on-pages/#post-6122417)
 * Actually, I have figured out that the code that is displaying is from jetpack.
   php and extras.php in the includes. I just can’t figure out why the code is displaying
   in the browser. Any help appreciated.
 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [11 years ago](https://wordpress.org/support/topic/code-showing-on-pages/#post-6122514)
 * Hi,
 * Did you use FTP to install the theme to your server? If yes then your FTP software
   messed up the mark up of the file.
 * In that case, please delete the theme from /wp-content/themes/ folder and then
   install it using the Theme Installer, following this tutorial: [http://docs.themeisle.com/article/4-how-to-install-wordpress-themes](http://docs.themeisle.com/article/4-how-to-install-wordpress-themes)
 * Let me know if it works. 🙂
 *  Thread Starter [Inkers92](https://wordpress.org/support/users/inkers92/)
 * (@inkers92)
 * [11 years ago](https://wordpress.org/support/topic/code-showing-on-pages/#post-6122522)
 * Hi Hardeep,
    Yes, I uploaded via FTP. Didn’t realise it could mess up the code.
   I uninstalled the theme and then reinstalled via the Theme Installer and everything
   now seems to be working fine. For anyone else experiencing this, I was concerned
   that I would lose customisations and my child theme with the uninstall but everything
   worked out beautifully. Thanks for the theme.
 *  [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * (@hardeepasrani)
 * [11 years ago](https://wordpress.org/support/topic/code-showing-on-pages/#post-6122550)
 * Hi,
 * We’re glad that it’s back on the track for you. Please consider leaving a review
   if you like the theme, and also please mark this thread as resolved. 🙂
 * Regards,
    Hardeep

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Code showing on pages’ is closed to new replies.

 * ![](https://i0.wp.com/themes.svn.wordpress.org/zerif-lite/1.8.5.49/screenshot.
   png)
 * Zerif Lite
 * [Support Threads](https://wordpress.org/support/theme/zerif-lite/)
 * [Active Topics](https://wordpress.org/support/theme/zerif-lite/active/)
 * [Unresolved Topics](https://wordpress.org/support/theme/zerif-lite/unresolved/)
 * [Reviews](https://wordpress.org/support/theme/zerif-lite/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [Hardeep Asrani](https://wordpress.org/support/users/hardeepasrani/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/code-showing-on-pages/#post-6122550)
 * Status: resolved