Hoping someone can help me, I am trying to add a CLASS to the code so I can style the footnote on the page. I figured out it has to go in this section
$npp .= "<br/><br/>--- Notes ---";
for($i=0;$i<count($tbl_npp1);$i++) {
$numbNote = $i+1;
$npp .= '<br/> [<a href="'. $page.'#nh'.$numbNote.'" name="nb'.$numbNote.'">'.($i+1).'</a>] '.substr(substr($tbl_npp1[$i],2),0,strlen($tbl_npp1[$i])-4);
$modx->documentObject['footnotes'][$i]=substr(substr($tbl_npp1[$i],2),0,strlen($tbl_npp1[$i])-4);
}
$o .= $npp;
}
else{
return;
However when I replaced a
with <p class="footnotes"> it displays the footnote in the body not as a footnote, also hadn’t managed to find where to put the closing tag yet.
$npp .= "<p class="footnotes"><br/>--- Notes ---";
for($i=0;$i<count($tbl_npp1);$i++) {
$numbNote = $i+1;
$npp .= '<br/> [<a href="'. $page.'#nh'.$numbNote.'" name="nb'.$numbNote.'">'.($i+1).'</a>] '.substr(substr($tbl_npp1[$i],2),0,strlen($tbl_npp1[$i])-4);
$modx->documentObject['footnotes'][$i]=substr(substr($tbl_npp1[$i],2),0,strlen($tbl_npp1[$i])-4);
}
$o .= $npp;
}
else{
return;