Support Joomla!

references:joomla.framework:document:jdocumenthtml-addcustomtag

Table of Contents

addCustomTag

API Package Subpackage Class Method Reference Last reviewed Doc status
API Home Package Joomla.Framework Subpackage Document Class JDocumentHTML Method addCustomTag Reference addCustomTag() Never Work in Progress

Adds a custom HTML string to the head block.

Syntax

void addCustomTag ( $html )

$html string is a string containing the HTML to add to the head.

Examples

Add custom HTML code to the head block.

Example

global $mainframe;

$document =& JFactory::getDocument();
$document->addCustomTag( '<style><!-- body{font-family:arial;} // --></style>' );
 
references/joomla.framework/document/jdocumenthtml-addcustomtag.txt (1007 views) · Last modified: 2007/08/15 14:58