• fjord1321

    (@fjord1321)


    Hi everyone, I’m new here and I could use some help.

    I have my site hosted locally using MAMP and have been working on getting it ready to go live.

    So what happened was I was I made a Child Theme for the header php. I copy and pasted all the code from the Parent theme and hit Refresh. After that, I tried to go to wp-Admin so I could get to the Dashboard but it does not show up. So that means I can’t get to the editor to change the php and fix it so I can get to the Dashboard. Has anyone heard of this problem? And is there a way to fix it so I can keep the changes I’ve made or do I need to delete the WordPress file altogether and start from scratch?

    Total newb mistake, I know. I just couldn’t find a source online that addressed this particular problem.

    Thanks.

Viewing 2 replies - 1 through 2 (of 2 total)
  • It would be easy to restore access to the Dashboard by simply renaming or moving the theme and child theme folder which will deactivate it, this will cause a default theme to be activated and also temporarily stop the changes you have made from affecting access.

    In order to help you make changes to the your child you will need to provide more detail to explain exactly what changes you have made and what you are trying to accomplish or you may need to upload it to a collaboration tool like GitHub and post a link, that way people can take a look and make changes or give you advice.

    hope that helps ??

    Dion

    (@diondesigns)

    The PHP editor in WordPress should be avoided because it tends to cause the problems you’re experiencing. If this is a localhost install, you can edit your PHP files using an editor on your Windows or OS/X system.

    Specific to your problem: using Windows or OS/X commands and NOT something in WordPress, delete all files in the child theme you created except for style.css, and copy the header.php file from the main theme to the child theme. That should get you up and running. Now edit the header.php file using a system editor, and you should have what you want.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Changed php in Parent theme, cannot access Dashboard’ is closed to new replies.