Home » Forum
  • If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.


No announcement yet.

Joomla code to shorten search results titles

  • Filter
  • Time
  • Show
Clear All
new posts

  • Joomla code to shorten search results titles

    A customer sent in this useful code to shorten Joomla headers. It removes the site description from the meta title and adds a ZOOMTITLE tag in the <head> section of the HTML code for Zoom to find..

    <?php $mydoc =& JFactory::getDocument();$mytitle = $mydoc->getTitle();echo '<meta name="ZOOMTITLE" content="',str_replace("TEXT TO REMOVE FROM TITLE GOES HERE","",$mytitle),'">'; ?>