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
In many ways, "chopping" up your theme files is what