how to create child theme (in detail)
-
hi everyone,
I am mahesh. I am new to wordpress. So I have lot of questions to ask. But for now I will reside with one.
The main problem is with creating a child theme. Everybody says that to edit the code to make necessary changes to the theme, don’t edit it in the parent theme rather create a child theme and edit it. Okay I understand, it’s a very good suggestion. But how to create a child theme is the main challenge.
To create a child theme, I have read many forums and understood the process. First create a child theme directory then create style.css and functions.php files and put basic code required into the files. That will create a child theme.
But now for it to work with parent theme, it should be enqueued. What is this enqueue. How to do it? How does it work?
to be frank I have done the enqueuing.But it doesn’t work The main reason to create a child theme is to be able to edit the code without affecting parent theme. But now when I try to edit the code in child theme the page itself is not getting loaded. Even the wordpress admin is not loading. And after if i log into my hosting control panel and from file manager when I delete the child theme directory then I am able to open my wordpress admin page.
I am totally confused with this child theme stuff.Please somebody help me. Please tell me how to create child theme. After creating child theme do I need to add any extra coding and create any extra files besides style.css and functions.php
- The topic ‘how to create child theme (in detail)’ is closed to new replies.