How do I add a custom header/footer to Coppermine?
Posted by Innerplanet Sales on 28 December 2005 08:08 AM

Look for these files:

  • If you want to add static html-content (for example your site logo), edit /themes/yourtheme/template.html - add/remove anything you want, but be sure to leave everything in that is in brackets.
  • If you want dynamic content (or want to add PHP-code), edit the file /themes/yourtheme/theme.php
  • If you want the edit the color scheme of a theme to match the "look-and-feel" of your site, edit /themes/yourtheme/style.css
  • For experienced php users, cpg 1.4.x introduces an alternative method of adding intricate custom headers or footers. Create a php file for your header and one for your footer using a format similar to the following:
<?php

echo <<<EOT 

Enter your header/footer content here.  What you enter here will be displayed
at the top of my page if it is a header and at the bottom of my page if it is a footer.

EOT;

?>

(297 vote(s))
Helpful
Not helpful

Comments (0)