Help- wordpress code change now website is gone.

5 replies
  • WEB DESIGN
  • |
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(); ?>
#change #code #website #wordpress
  • Profile picture of the author gs000707
    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
    Signature

    I guess, here goes the fee first, fancy sig later after that, I'll have to wait then... .)

    {{ DiscussionBoard.errors[5377835].message }}
    • Profile picture of the author bluecreel
      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(); ?>
      {{ DiscussionBoard.errors[5377869].message }}
  • Profile picture of the author Istvan Horvath
    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...
    Signature

    {{ DiscussionBoard.errors[5377863].message }}
  • Profile picture of the author gs000707
    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.
    Signature

    I guess, here goes the fee first, fancy sig later after that, I'll have to wait then... .)

    {{ DiscussionBoard.errors[5377872].message }}
  • Profile picture of the author gs000707
    Could you describe the path to this header or you don't know that either? Also, can you copy & paste your URL again?
    Signature

    I guess, here goes the fee first, fancy sig later after that, I'll have to wait then... .)

    {{ DiscussionBoard.errors[5378575].message }}

Trending Topics