WordPress.org

Ready to get started?Download WordPress

Forums

Child Theme Folders Accessibility through WP Editor (9 posts)

  1. timemachines
    Member
    Posted 1 year ago #

    I am building a buddypress Child Theme and understand that files inside the Child theme take precedence over the 'parent' default-theme files.

    If I copy a folder from the 'parent' theme and place it in the child - I am unable to see the files from within the WP admin editor (Appearance > Editor).

    Is there a way that I am able to see them and subsequently edit them from within the WP editor - or do I need to use my FTP editor to make changes?

    Any help or redirection to help would be much appreciated!

  2. kmessinger
    Volunteer Moderator
    Posted 1 year ago #

    Upper right - select theme to edit - does the child theme appear there?

  3. Rev. Voodoo
    Volunteer Moderator
    Posted 1 year ago #

    Files that are tucked into folders don't normally appear for me in the editor, for any theme

  4. timemachines
    Member
    Posted 1 year ago #

    I have the Child Theme selected and see the file list - but any files inside of a folder are not there. I can choose the "parent" theme and edit from the admin - but I do not want to do that as everything I have read says "Do not edit the parent files directly - move them into the child theme folder".

    The same issue lies with the _inc folder that house the original CSS.

    Does that make sense?

    Basically, I want to access Child theme files that are INSIDE of folders from within the admin editor.

    Thanks for the help!

  5. kmessinger
    Volunteer Moderator
    Posted 1 year ago #

    Right, the files I see are not in folders. I don't think there are supposed to be folders in a child theme. This, http://codex.wordpress.org/Child_Themes only references files.

  6. timemachines
    Member
    Posted 1 year ago #

    Thanks Kmessinger - I had been through that codex page. However, other sources such as the buddypress for dummies book (and other) mention bringing in the _inc folder to the Child theme.

    Additionally, I have read notes that say that if you want to edit any files that are in the "Parent" theme folder - that they need to be copied into the "Child" - and if they are in folders, the folders themselves need to be duplicated and placed in there. At the same time - they never really tell you whether they can be edited from the admin.

    Puzzling. :D

    THanks for your help!

  7. esmi
    Theme Diva & Forum Moderator
    Posted 1 year ago #

    This is a known issue with the Theme Editor and has nothing to do with child themes (which can have sub-folders, btw).

  8. kmessinger
    Volunteer Moderator
    Posted 1 year ago #

    Here the Buddy Press Codex gives an example of Overriding BuddyPress’ Template Files in the child theme.
    http://codex.buddypress.org/theme-development/building-a-buddypress-child-theme/

    They take header.php from bp-themes/bp-default folder and paste just the file but then the caveat,

    You can do this with any template file from the BuddyPress Default theme. However, if you want to override a template file that is in a subfolder, you must also recreate the subfolder in your child theme.

    But, header.php is a template file and resides in a subfolder.

    In the end, whatever works is the correct answer :^)

  9. timemachines
    Member
    Posted 1 year ago #

    Thanks for all the input and the additional link

    I will continue to use my FTP program in addition to the wp admin until I find another solution as it does work fine.

    appreciate the help

Topic Closed

This topic has been closed to new replies.

About this Topic