• HELP!!!

    I have NO experience whatsoever with webdesign or coding yet tried to do it anyways.

    When creating my website, I was using customizr theme and wanted to center the menu. I found CSS for it here https://presscustomizr.com/snippet/center-header-block-items/ and tried to input the CSS in. I’m not sure what on earth i did but now its NOT working at all, i cant get to admin page, NOTHING. If i go to my website jaquelinemccarvill.com the page is just blank. Did i just ruin everything? If so, what do i do? I’m so confused.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Did you create a child theme as those instructions directed? And did you add that code to the child theme? If so, you can just delete the child theme and go back to using the parent theme.

    If you can’t access your admin pages, you’ll need to use an FTP client (like FileZilla), or your host’s cpanel (or File Manager) and navigate to the files on the server.

    In your WP installation there, find wp-content/themes and delete only the child theme folder (not ‘themes’ or customizr). That will hopefully allow you to get back into WP admin where you can activate your theme.

    David_G

    (@questas_admin)

    Instead of deleting the theme files, you can change the theme folder name to customizr.bak that force your WP site to a default theme. Once that is done you should be able to access the dashboard. Then use the ftp to rename that same folder back to customizr. Like BILL asked, did you create a child theme or were you editing the theme files? If you were using a child theme and not editing the theme files themselves it should be safe to reactivate customizr and figure out what you did in the child theme that caused the crash. What exactly were you editing when it crashed? CSS doesn’t normally cause a crash where as PHP will if not done correctly. You should have 2 files in the child theme, Style.css and Functions.php

    Thread Starter Jaquelinemcc

    (@jaquelinemcc)

    Yes, i created the child theme. Not sure if it occured during editing the CSS or PHP but it could have been either cause i changed both before saving and trying to preview the site. I guess thats what messing around when you dont know what you’re doing does…. Anyways, i deleted the customizr child folder from my host’s cpanel and all is well again in the world. THANK YOU both.

    Glad you got this worked out!

    There’s no harm in trying again with a child theme, now that you know how to back out if you need to. That’s the beauty of child themes. Most likely there was an error in the PHP since, as questas_admin said above, that’s usually what takes a site down. CSS errors usually just mess up visual presentation.

    Please mark this thread as resolved if you would. And, you’re welcome!

    David_G

    (@questas_admin)

    You should reset your child theme. When you add or edit to your functions.php file next time and you get the white screen of death, all you need to do is remove the edit and if that still doesn’t work change the name of the functions.php file to functions.bad or something like that and it should bring your site back up, just without the customized functions working. Then figure out what you did wrong and restore the file. You don’t need to delete the entire child theme. Like I said before, php edits are unforgiving if done incorrectly. When you copy a snippet to place in your functions file, copy and paste it exactly as it shows. FYI the Customizr support forum is very well supported as is their website.
    https://www.ads-software.com/support/theme/customizr
    https://presscustomizr.com

    David_G

    (@questas_admin)

    I found CSS for it here https://presscustomizr.com/snippet/center-header-block-items/ and tried to input the CSS in.

    Make sure you put the right code in the correct file. That set of snippets they tell you which file to edit.

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Changed CSS and ruined website.’ is closed to new replies.