Featured templates

Joomla. How to use special characters in menu titles

Alex Ross June 26, 2012
Rating: 5.0. From 2 votes.
Please wait...

The following tutorial will show you how to add special characters to the Joomla menu titles.

Sometimes when you add a special character to the menu title in Joomla, it is reflected like it’s predefined code on your website

In order to resolve the issue you need to open the following file on your server:


And find the line:

$item->title = htmlspecialchars($item->title);

You need to add the following code before this line:

 $item->title = str_replace(
array('<','>','&'), $item->title);

Where the first array consists the list of the predefined character codes, the second array reflects the symbols of the predefined code.

Please, note that such symbols as ‘, " at the second array should start from backslash \ e.g.

array('<','>','&','\'','\"'), $item->title);

You may find more special symbols and their predefined codes on the following page:

Enjoy your updated website:

Feel free to check the detailed video tutorial below:

Joomla. How to use special characters in menu titles

Joomla design Templates
This entry was posted in Joomla! Tutorials and tagged characters, joomla, menu, special. Bookmark the permalink.

Submit a ticket

If you are still unable to find a sufficient tutorial regarding your issue please use the following link to submit a request to our technical support team. We'll provide you with our help and assistance within next 24 hours: Submit a ticket

  • Ian Shere

    Great just what I needed. But could you please use a bigger sized font – it’s ridiculously small.

    No votes yet.
    Please wait...
Live Chat
We help you to choose the right product.