| API | Package | Subpackage | Class | Method | Reference | Last reviewed | Doc status |
|---|---|---|---|---|---|---|---|
Home |
Joomla.Framework |
Document |
JDocumentHTML |
addCustomTag |
addCustomTag() |
Never | Work in Progress |
Adds a custom HTML string to the head block.
void addCustomTag ( $html )
| $html | string | is a string containing the HTML to add to the head. |
Add custom HTML code to the head block.
Example
global $mainframe; $document =& JFactory::getDocument(); $document->addCustomTag( '<style><!-- body{font-family:arial;} // --></style>' );