Advanced search  


cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.

Pages: [1]   Go Down

Author Topic: Making a brand new theme, where to start?  (Read 39687 times)

0 Members and 1 Guest are viewing this topic.


  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 1615
  • From
    • Donovan Bray
Making a brand new theme, where to start?
« on: November 24, 2005, 10:07:51 pm »

Read the docs first

Then read the theme upgrade documentation

Take a look at the sample theme which includes everything you COULD override.

make a new directory in your themes directory with your new theme name.

Copy everything from the sample theme to your new theme directory.

Delete the theme.php from your new theme directory.

Build the theme.php from scratch only overriding what you need for your theme, using the theme upgrade documentation.

Modify the rest of the theme to suit.

The worst thing you could do in creating your new theme, is to copy and use sample's theme.php, so don't.


  • VIP
  • Coppermine addict
  • ***
  • Country: us
  • Offline Offline
  • Gender: Male
  • Posts: 856
    • evj art and photography
Re: Making a brand new theme, where to start?
« Reply #1 on: November 29, 2005, 10:42:30 pm »

Hope you don't mind, Donnoman, but I thought I'd add a little to this.

As many of you have already discovered, with 1.4.x you can now add a custom header and a custom footer file to your templates by adding the name of the file in the CONFIG panel.

What you might NOT know is that these don't really have to be headers or footers.

If your footer and header are pretty static (unchanging) you can leave them coded directly in your template and use the {CUSTOM_HEADER} and {CUSTOM_FOOTER} to display other content in different parts of your template.   

For example, say you wanted a column on the right side of your template that would contain information that needed to update regularly.  You could create that column in your template and simply put either of the above into it.

Or you placed your menus to the left side in your template and want to add a special block of content below it.  Create the necessary row and column and place either of the two options into it.

Then, create the files you named in the Custom Header and Custom Footer options in the CONFIG panel.   

Learn and live ... In January of 2011, after a botched stent attempt, the doctors told me I needed a multiple bypass surgery or I could die.  I told them I needed new doctors.

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
Re: Making a brand new theme, where to start?
« Reply #2 on: January 22, 2006, 01:20:58 pm »

To find out what part of coppermine is being controlled by which css class, the coppermine dev team recommends using these tools:
Both tools allow you (among many other usefull things) to display the css class applied (see attached screenshots)
« Last Edit: February 28, 2007, 06:41:11 am by GauGau »
Pages: [1]   Go Up

Page created in 0.017 seconds with 19 queries.