• I got my child theme up and running, and I am wondering, do I edit the files (index.php specifically) in the Child Theme folder (C:\mywebsite\wordpress\wp-content\themes\twentyeleven-child) or do I just activate the Child theme and edit the files in the WordPress folder (C:\mywebsite\wordpress)? Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter Mike3853

    (@mike3853)

    anyone? is it safe to edit the index.php file in the root WordPress folder after you activate your child-theme?

    Don’t ever edit anything in the root WordPress folder. The only things you should mess with are in wp-content (specifically, plugins and themes).

    Hi Mike,
    Ok, you have your child theme in /wp-content/themes/twentyten-child/ in this folder you have your style.css and any style changes go in this file.

    Now lets say you wanted to change the footer.php to edit the credits, you copy just footer.php across to your child theme and do the edit, when WordPress runs it looks first in the child theme, if it finds the file it ignores the parent.

    That goes for all other page files like index.php, header.php, single.php and the loop files.

    If you then wanted to create a template page lets say page of posts, you would copy page.php or index.php from the parent, rename thsi and add the template code, this file will only exist in the child theme.

    HTH

    David

    Thread Starter Mike3853

    (@mike3853)

    OK thanks a lot! Makes sense, so I just copy any files I need to edit over to the child theme. Was a little confused because I only had a couple files in my child them folder. Thanks again!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘A Child Theme Question…’ is closed to new replies.