title: Wordpress - Add a new class to an element on same template-page.php depending the active page?
body: <p>I create a custom template &quot;page-products.php&quot; for all my products page.</p>
  <p>Inside of this template, i have a horizontal menu with 8 items.
  <a href="https://i.stack.imgur.com/IqDyD.png" rel="nofollow noreferrer">example capture of the menu</a></p>
  <p>When i'm on the page of the current product, i would change the back-ground color of the element menu.</p>
  <p>Any ideas to add a new class on an element when on the current page ?</p>
  <p>I would like to avoid to create 8 differents template for each different product.</p>