• mdavidm_531

    (@mdavidm_531)


    Hi, all,

    I am quite new to this but I am very much willing to learn.

    I have a rather elementary question. When I inspect elements on my website (davemontemayor.com), I know what line in the style.css is being “affected.”

    But, how come if I try to do the coding on the child theme instead of the parent style.css it doesn’t work?

    Please walk me through. Thans!

Viewing 3 replies - 16 through 18 (of 18 total)
  • MarkRH

    (@markrh)

    All overrides go into the child theme. Just copy the parent’s header.php and footer.php into the child theme’s directory and modify those versions.

    With child themes it first looks into that directory for a file and if it doesn’t find it, load’s the parent’s version.

    Thread Starter mdavidm_531

    (@mdavidm_531)

    I’m sorry how do you add header.php and footer.php into the child theme?

    I’m in appreance -> editor -> GenerePresschild now

    Using Mac OS X El Capitan

    Thanks
    Dave

    Moderator James Huff

    (@macmanx)

    I’m not sure how it works in the plugin, to be honest, but if you’re doing it manually you simply duplicate that parent theme’s header.php and footer.php files into the child theme’s directory, and modify the child copies.

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘Need clarity: how to know when to use child theme’ is closed to new replies.