wordpress - How to properly create a child theme structure -
i've read articles , i've understood there child theme files, totally override main theme files others not (like function.php
example). @ point, know files included in child theme , how (regarding folder structure).
most of modifications made in custom css
main theme special field, i've modified directly app.css
, app.min.js
, header.php
, script-calls.php
(registering additional js
files , applying tweaks).
i have mention in case, stylesheets enqueued using inc/script-calls.php
not function.php
file.
all files (no matter extension) treated in same way, ok if copy these files child theme folder or should create exact directory structure, have in main theme please?
thank you,
le: struggling make work without result. recreate same folder structure trying use these files in child: app.css
, app.min.js
, header.php
, script-calls.php
, file working it's header.php
. thoughts?
you have follow directory structure of parent theme in child theme folder.
if parent theme structure is:
/parent-theme/templates/single.php
to replace single.php in child theme folder must create:
/child-theme/templates/single.php
any file can included in child theme. can include additional files not loaded in parent theme.
Comments
Post a Comment