Changing an html website to Wordpress and missing the Parent Theme

I have been trying to change my HTML website over to Wordpress. When I load the new theme, it says it is installed but that the Parent Theme is missing, please install. How do I do that? I have copy and pasted all the code into the files to transfer it to Wordpress. These files are header.php, footer.php, style.css, and sidebar.php. This website was designed years ago and was HTML. I feel like I am really close but I don't know how to create the Parent Theme when it was created outside of Wordpress. Please help if you can. Best, Helen

Topic parent-theme Wordpress

Category Web


You miss index.php as it is required - https://developer.wordpress.org/themes/getting-started/what-is-a-theme/#required-files

In style.css you have setup your theme as a child, that is second option for this message.

Parent theme is two file style.css and index.php. This parent theme style need to be without line about template - remove 7 line from this example if you have - https://developer.wordpress.org/themes/advanced-topics/child-themes/#2-create-a-stylesheet-style-css Template line suggest using it as child theme rather than parent

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.