So in my
index.php I called
index.php is kind of huge. It is separated into 5 divs more. How do I make it cleaner? Is it safe to chop it to files and include the files?
Yes, you can separate your code and markup into multiple files. Be aware of scope issues when you use include, but done carefully it should be no problem. Since you are in WordPress and building a theme, I would suggest
get_template_part over a raw
In many ways, "chopping" up your theme files is what
get_template_part is for-- well, at least it is very convenient for that. It lets you separate components of the page and include them in a way that makes easy to extend via child themes.