JDocumentHTML/addCustomTag

From Joomla! Documentation
Jump to: navigation, search

Adds a custom HTML string to the document head.

Syntax

void addCustomTag( $html )

where:

Argument Data type Description Default
$html string Custom HTML string to be added.

Example

Adding a comment to the HTML head section:

$doc =& JFactory::getDocument();
$doc=>addCustomTag( '<!-- This is a comment. -->' );

See also

Personal tools
Namespaces

Variants
Actions
Navigation
Joomla! Sites
Toolbox