How to Hide the Toolbar Cog Button in JCal Pro

In some use cases, you may want to hide the toolbar cog button and its dropdown options.

cog button

Here is what the toolbar looks like without the cog button:

toolbar without the cog button

You can achieve this by using Joomla’s core Template Overrides feature.

  • In your Joomla admin dashboard, go to: System > Site Templates.
  • You will arrive at the Templates: Templates (Site) screen.
  • Click the link for your active site template.

the template link

  • You will see the Templates: Customise (your-template-name) page.
  • On the Create Overrides tab, navigate to: Layouts > com_jcalpro > jcal:

the layouts jcal link

  • A confirmation message should appear indicating that the override was created.
  • Next, open the Editor tab and browse to: html > layouts > com_jcalpro > jcal > toolbar.php.
  • Open the toolbar.php file for editing:

the toolbar php file link

  • Download the pre-edited toolbar.php file from Dropbox.
  • Open the downloaded file.
  • Copy its contents.
  • Return to your Joomla admin dashboard and open the toolbar.php file in the override editor.
  • Replace the existing contents with the copied version.
  • Save the file.
  • Test your JCal Pro toolbar.
  • You should see that the cog button is no longer visible.