WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Help!! Messed up theme code! (12 posts)

  1. solofem
    Member
    Posted 1 year ago #

    Okay - bear with me as I do not have alot of knowledge with computers.

    I am using the bombax theme.

    I went into editor, then header php. I then seemed to have messed with part of the code. The area where i messed up NOW reads like this:

    [mod: please use pastebin]

    I have spent hours creating this site. Please help!

    Thanks

  2. vtxyzzy
    Member
    Posted 1 year ago #

    Please put the entire header.php file into a pastebin. The error may not be caused on the exact line mentioned in the error message.

  3. govpatel
    Member
    Posted 1 year ago #

    Just replace the header.php file would do the trick if you did not make any other customization.

  4. solofem
    Member
    Posted 1 year ago #

    sorry, so clueless on how to do the paste bin...i pasted it to

    http://pastebin.com/embed_js.php?i=pqrhFg5P

    is that okay?

    Please help thanks

  5. solofem
    Member
    Posted 1 year ago #

    govpatel - thanks, but i have no knowledge and dont know how to do that...

  6. vtxyzzy
    Member
    Posted 1 year ago #

    Plus, if you have made many changes to header.php, you will lose them all.

  7. solofem
    Member
    Posted 1 year ago #

    Phew!! Its been resolved - thank you.

    I will tell you how i messed it up:

    I wanted to verify my site with google. and they ask me to paste a meta tag in the header section (or whatever)

    Being clueless i went into editor, header php, and just pasted the meta code in the middle of it.

    Where was i supposed to paste googles meta tag to verify my site. I really wished they catered to clueless people like me!

  8. vtxyzzy
    Member
    Posted 1 year ago #

    There are a couple of things you should do before attempting any code modifications:

    1. Back up! This is critical. And, you should back up the site regularly, especially before applying updates or installing new plugins.
    2. Learn to use ftp or a file manager from your hosting service. This will be necessary to recover from some errors, and the easiest way for many others.
  9. solofem
    Member
    Posted 1 year ago #

    Thank you....Please dont laugh, but what is the best way to back up the website? Is it through the host account control panel?

    I have learned my lesson!

    Although, would still be interested to learn how to insert the google meta tag.

    Thanks!!!

  10. vtxyzzy
    Member
    Posted 1 year ago #

    There is no one 'best' way to back up. In fact, most sites benefit from using multiple backup methods. Here are my own personal ideas on backup.

    I consider 2 'classes' of backup: 'Full site' and 'Database'.

    Full site backup is appropriate when changes are made to WordPress, themes, plugins, or uploads. For many sites, this will be done on an 'as needed' basis. These backups are typically large and cannot be emailed to the admin, but must be downloaded or copied using file transfer.

    Database backup is needed when new Posts, Pages, Comments, or other content is added to the site. These backups are often done on a regular basis and can be emailed to the admin.

    I usually try to use a plugin for backups. In some cases, there are hosting restrictions that make it necessary to use the host control panel, especially for the full site backups.

    I often use BackUpWordPress for full site backups. It seems to work on most of the hosts that I deal with.

    I usually use either WP DB Backup or WP DBManager for database backup.

    Backup is a complicated area. What works for one site may not work for another. If these plugins will not work for your site, there are many others, including paid services that can do it all for you.

  11. solofem
    Member
    Posted 1 year ago #

    Thank You!

  12. vtxyzzy
    Member
    Posted 1 year ago #

    If your problem has been solved, please use the dropdown on the right to mark this topic 'Resolved' so that anyone else with this question can see that there is a solution.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.