add custom html to Classic Blogger FTP label pages
I have a back button on my archive pages that wasn't showing up on my label pages.On Classic Blogger templates for FTP, the <MainOrArchivePage> tag doesn't work with label pages.
This is for adding a home button (or custom content) to a label page.
<?php
// place this code wherever you need it.
// this checks to see if you are on a label page.
if(strstr($_SERVER['PHP_SELF'],'/blog/labels/')) {
// note the backslashes before the double quotes.
echo "<a href=\"<$BlogURL$>\"><$I18NHome$></a>";
}
?>
Labels: code