Using EE 2.5.5, I wish to output a segment_x (segment_2, which aligns with our department names) so that I may class by department; i.e.,
<article class="main {segment_2}">
<more html goes here>
would become
<article class="main lead-pipes">
<more html goes here>
However, I can not add {segment_2} to HTML portions of the template, nothing outputs.
How to do so?
{segment_2}with nothing else you need to do. Have you checked what is being output in the browser dev tools?