Nick Shaw

Target a specific page in Joomla

This can be used in your Joomla template to target a specific page, use the menu Joomla menu ID.

<?php
   $menuID = JSite::getMenu()->getActive()->id ;
  if ($menuID == '6')
  {
    echo '';
  }
 ?>
Exit mobile version