WordPress.org

Ready to get started?Download WordPress

Forums

How can I get the php files to show up under appearance-editor? (10 posts)

  1. suavedesign
    Member
    Posted 1 year ago #

    I am wondering how I can view the php files/ templates in my editor section of the dashboard.
    When I go into appearance-editor, I see a list of css files under "styles", and those I can edit there.
    But under templates, it just says "This child theme inherits templates from a parent theme, Business lite".
    I copied some php files and put them into my child directory, so how do I get them to show up in the editor section?
    Thanks.

  2. keesiemeijer
    moderator
    Posted 1 year ago #

    On the top right of that page is a dropdown where you can select your parent theme (Business lite) to edit.

  3. suavedesign
    Member
    Posted 1 year ago #

    But I dont want to edit the files on the parent theme. I want to edit them in my child theme!

  4. keesiemeijer
    moderator
    Posted 1 year ago #

    Sorry, yes. Copy the parent theme files (you want to edit) over to your child theme and edit them there.

  5. suavedesign
    Member
    Posted 1 year ago #

    I'm not sure I understand;
    I copied the parent theme files over to my child theme. (and uploaded them to the child theme directory, via ftp) Now I want to edit those files. Shouldnt they show up in appearance-editor? Because they dont! So how do I edit them?

    Thanks for your help!!

  6. keesiemeijer
    moderator
    Posted 1 year ago #

    That's strange I can see all files I copied to my child theme folder. How did you copy them? By using FTP? Are you sure the files are in your child theme directory?

  7. suavedesign
    Member
    Posted 1 year ago #

    It really is strange, I know. I used ftp to copy them. I copied them the same way I copied the style sheets, and the style sheet does show up in my dashboard!
    But under templates, it says This child theme inherits templates from a parent theme, Business lite", and the template name is a link to the parent theme.

  8. keesiemeijer
    moderator
    Posted 1 year ago #

    Are these files in a subfolder in your child theme? This can sometimes cause problems.

    Check if the permissions for your php files are correct:
    http://codex.wordpress.org/Changing_File_Permissions#Permission_Scheme_for_WordPress
    http://codex.wordpress.org/Changing_File_Permissions#Using_an_FTP_Client

    All files should be 644 or 640. Exception: wp-config.php should be 600 to prevent other users on the server from reading it.

  9. suavedesign
    Member
    Posted 1 year ago #

    No, they are not in a subfolder.
    I'll check the permission.
    thanks...

  10. keesiemeijer
    moderator
    Posted 1 year ago #

    Also try:

    - flushing any caching plugins you might be running, as well as server and/or browser caches.

    - deactivating all plugins to see if this resolves the problem? If this works, re-activate the plugins one by one until you find the problematic plugin(s).

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.