I want to modify it so it will use the body_classes tag on a modular page. In some themes this seems to work automatically like in the bootstrap4 theme. The code is almost identical.
Is there a different method to adding the body_classes tag to the modular templates? If I manually add class=“myClsss” instead of the body_classess tag it works.
Else if your real code is correct, are you sure the frontmatter of the module does indeed contain a value for body_classes. Did you do a dump of module.header to see if body_classes does exist and does have a value?
You are correct. I am just winging it and am not familiar with actually works. I thought I had used the page.header.body_classes on another modular template when I had tried this before but I went and looked at the theme and it is using Bootstrap4 which means it was already working so my changes probably did nothing. lol