Help- wordpress code change now website is gone.

by 5 replies
6
So, I am no expert in Wordpress, but all I did was copy a small piece of code or the header file and paste it to try to change my site description. Now my site is a total blank white screen. So obviously I did something wrong. I would love someone to help. I deleted the part of the header.php file that was used for the site description. I tried adding what I thought would change it but it didn't work. Unfortunately, I didn't copy the old code to change it back. Let me know if you know how to fix this. thanks

Here is the code. I have deleted something that is making the site blank.

<title>

&nbsp;|&nbsp;
<?php bloginfo('name'); ?>
<?php } ?>
<?php if ( is_search() ) { ?>
Search Results&nbsp;|&nbsp;
<?php bloginfo('name'); ?>
<?php } ?>
<?php if ( is_author() ) { ?>
Author Archives&nbsp;|&nbsp;
<?php bloginfo('name'); ?>
<?php } ?>
<?php if ( is_single() ) { ?>
<?php wp_title(''); ?>
<?php } ?>
<?php if ( is_page() ) { ?>
<?php wp_title(''); ?>
<?php } ?>
<?php if ( is_category() ) { ?>
<?php single_cat_title(); ?>
#website design #change #code #website #wordpress
  • Hey there. At worst case, I will at least bump your thread, so it won't end in the WF abyss so quickly.

    To your issue;

    Could you please upload somewhere your header, the file you messed up with and I will try to take a look at it. No promises however.

    By the way, I guess, you have no back-up, I mean, you were performing these edits and experiments right onto the file you have on FTP, which is part of your online site, right?

    Anyway, put it on some Megaupload, post link here and if not me, I'm sure, other might have a look at it.

    Regards,
    George
    • [1] reply
    • the site is start-lawncarebusiness

      here is the code. I deleted something below the title tag. I don't know what it was. Obviously, I need to be more careful next time.

      <title>

      THis is where I deleted something that I wasn't supposed to

      &nbsp;|&nbsp;
      <?php bloginfo('name'); ?>
      <?php } ?>
      <?php if ( is_search() ) { ?>
      Search Results&nbsp;|&nbsp;
      <?php bloginfo('name'); ?>
      <?php } ?>
      <?php if ( is_author() ) { ?>
      Author Archives&nbsp;|&nbsp;
      <?php bloginfo('name'); ?>
      <?php } ?>
      <?php if ( is_single() ) { ?>
      <?php wp_title(''); ?>
      <?php } ?>
      <?php if ( is_page() ) { ?>
      <?php wp_title(''); ?>
      <?php } ?>
      <?php if ( is_category() ) { ?>
      <?php single_cat_title(); ?>
  • Just upload a "virgin copy" of the file you messed up from your computer to the server.

    And stop using the idiotic online theme editor: it doesn't have an UNDO button...
  • I believe, he forgot to back-up.

    Rule no. 1 in web-mastering: Always back-up!

    Okay, thanks. I will try to have a look at it.
  • Could you describe the path to this header or you don't know that either? Also, can you copy & paste your URL again?

Next Topics on Trending Feed

  • 6

    So, I am no expert in Wordpress, but all I did was copy a small piece of code or the header file and paste it to try to change my site description. Now my site is a total blank white screen. So obviously I did something wrong. I would love someone to help. I deleted the part of the header.php file that was used for the site description. I tried adding what I thought would change it but it didn't work. Unfortunately, I didn't copy the old code to change it back. Let me know if you know how to fix this. thanks Here is the code. I have deleted something that is making the site blank.