Is anyone able to update the header code on this site to the current version? Thanks!
(It wont let me link, so here is the code)
First, take your Google Analytics and Adsense code and convert all the single quotes to double quotes.
In SkinMinerva.php
, find the getHeaderHtml()
function, and replace the following code:
protected function getHeaderHtml() {
$title = $this->getOutput()->getPageTitle(); if ( $title ) { return Html::rawElement( 'h1', array( 'id' => 'section_0' ), $title ); } return '';
}
to the following:
protected function getHeaderHtml() {
$title = $this->getOutput()->getPageTitle();
if ( $title ) {
$result = 'INSERT AD CODE';
$result .= Html::rawElement( 'h1', array( 'id' => 'section_0' ),
$this->getOutput()->getPageTitle() );
return $result;
}
return '';
}