Alex.1 Posted October 30, 2020 at 02:07 AM Share Posted October 30, 2020 at 02:07 AM Hi, In index.php ... to this line : <body class="<?php echo $pageclass ? htmlspecialchars($pageclass) : 'default'; ?><?php echo $this->direction == 'rtl' ? ' rtl' : ''?>"> I would like to add a new class which would be the current category title. It would look like this: <body class="<?php echo $cat_id;?> <?php echo $pageclass ? htmlspecialchars($pageclass) : 'default'; ?><?php echo $this->direction == 'rtl' ? ' rtl' : ''?>"> Any tip how to get the $cat_id to reflect the current category title? Much appreciated, Alex PS: I am trying to avoid editing the menus... especially if I'll have a lot of categories... Link to comment
Alejandro Posted October 30, 2020 at 10:14 AM Share Posted October 30, 2020 at 10:14 AM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Alex.1 Posted October 30, 2020 at 02:14 PM Author Share Posted October 30, 2020 at 02:14 PM This section is only visible with a valid subscription. If you have a valid subscription, please login. Link to comment
Recommended Posts