WordPress.org

Support

Support » How-To and Troubleshooting » Child Theme Folders Accessibility through WP Editor

Child Theme Folders Accessibility through WP Editor

  • 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!

Viewing 8 replies - 1 through 8 (of 8 total)
  • Moderator kmessinger

    @kmessinger

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

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

    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!

    Moderator kmessinger

    @kmessinger

    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.

    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. ๐Ÿ˜€

    THanks for your help!

    esmi

    @esmi

    Forum Moderator

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

    Moderator kmessinger

    @kmessinger

    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 :^)

    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

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘Child Theme Folders Accessibility through WP Editor’ is closed to new replies.
Skip to toolbar