• Resolved retracetravel

    (@retracetravel)


    Hello! This is my first post so nice to meet you all.

    My website is https://www.retracetravel.com
    this is my first attempt at creating a website.

    I created a “child-theme” using the plugin “Child Theme Configurator”
    I was trying to adjust height of my header to make it smaller.

    I transferred three pages from the Parent directory:
    1. functions.php
    2. stylesheet.css
    3. header

    I was adding in code that I had copied from a forum post about adjusting the header size and I updated it.

    From that moment I have been totally locked out of my account.
    Even when I try to access the URL https://www.retracetravel.com/wp-admin
    I see the following message:

    “Parse error: syntax error, unexpected ‘aa€?’ (T_STRING), expecting ‘)’ in /home/content/p3pnexwpnas07_data01/45/2803845/html/wp-content/themes/sela-childwabam/functions.php on line 22”

    I have no idea how to fix my mistake, especially since I can not even access my account. Also, I have tried to log in on multiple browsers and the same message is returned.

    Wow CSS in confusing.
    Thankyou for your help in advance.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator Kathryn Presner

    (@zoonini)

    Welcome!

    The problem is that you should not copy over the entire functions.php from the parent theme as you’ll get conflicts that way. A child theme loads the parent’s functions.php first and then the child’s functions.php. You only place functions in the child theme when you want to add to or override the parent, otherwise you’ll get this issue.

    I have no idea how to fix my mistake, especially since I can not even access my account.

    Connect to your site via FTP and rename your child theme folder – that should deactivate it instantly.

    I gave a talk about child themes you might want to peek at – it may clarify some things about how they work. ??

    Let me know how it goes!

    access your website using ftp and remove functions.php from child theme
    then try to access wp-admin again

    Cheers!
    Youcef Ayoub

    Thread Starter retracetravel

    (@retracetravel)

    Thankyou Kathryn and Youcef!

    I had no idea what “FTP” even was before your posts, i figured out how to access it through ‘FileZilla’ and was able to delete the child theme folder and start again from scratch.

    I can now access my account again, thankyou! For a moment I thought I had broken the internet!

    Kathryn I thought I would mention your blog post is inaccessible as it is marked as private ??

    Thankyou Again.

    Moderator Kathryn Presner

    (@zoonini)

    My apologies, I pasted the wrong link – here’s the right one!

    Glad you were able to start over and get back to building your site!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘I created a child theme, now I cant access my account’ is closed to new replies.