Help adding code to index_template for a mod

Started by JF3000, March 12, 2017, 12:26:44 PM

Previous topic - Next topic

JF3000

If I want to place a piece of code into the index_template file, how do I create a mod to add the code into the file located in this spot?

// Output any remaining HTML headers. (from mods, maybe?)
echo $context['html_headers'];


Add code here

echo '
</head>
<body>';
}

Arantor

What are you planning on putting there?

The ideal would not be to edit the file at all but extend the contents of $context['html_headers'].

Advertisement: