doNotHide only for grid template

Needed the doNotHide part in htmlHead to only work for grid template so
I made an if statement for that and added the category tag to any
template that didn't have it.