Adding page template slug to base container

I am a Sage n00b but loving the theme.

I am trying to add the page template slug to my base.php template so I can add certain styles to the parent containers of some of my templates.

i.e. the home page will be
<div class="wrap container template-home-page" role="document">

Any points on how to do this?

Is there a reason you need it on the container?

Template and other useful classes are included in the body tag via:

1 Like

Actually those classes are included on the <body> element here.

You can use the body_class filter to add or remove classes or you can modify the body_class() function arguments in base.php directly if you want to add a class.