coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Desert Rider on January 24, 2009, 07:02:33 PM

Title: Correct way to edit template/theme
Post by: Desert Rider on January 24, 2009, 07:02:33 PM
Using 1.4.19. I've modified my igames theme to change the Coppermine logo and the text below it. It seems to work fine but I would like to know if I've done it correctly.

I wanted to use a custom graphic to replace the Coppermine logo. I took the image from the themes/igames/images folder, added my graphic to it and then replaced the existing image with the revised one. I then edited the template.html and put spaces in the field where {GAL_NAME} was, e.g. <h1>&nbsp;&nbsp;&nbsp;</h1>. This works but could I have edited some other file to acheive this? What file does the {GAL_NAME} get it's info from, I mean if instead of a graphic I just wanted to change the text?

I also wanted to change the text below the logo that read Your Online Photo Album. To do this I simply edited the template.html to change the {GAL_DESCRIPTION} to what I wanted it to read (see screenshots). Again, what file could I have edited to change the text but still have the template.html show {GAL_DESCRIPTION}?

I know I could have changed the font and color by editing the style.css file.

Hope these questions are clear ???
Title: Re: Correct way to edit template/theme
Post by: Nibbler on January 24, 2009, 11:50:31 PM
That's fine for images, but if you just want to change the text then you do that from the admin control panel. No editing required.
Title: Re: Correct way to edit template/theme
Post by: Desert Rider on January 25, 2009, 12:21:35 AM
Quote from: Nibbler on January 24, 2009, 11:50:31 PM
That's fine for images, but if you just want to change the text then you do that from the admin control panel. No editing required.
Thanks for the reply. Wish I'd known that sooner! I spent a LOT of time trying to find text for GAL_DESCRIPTION! By any chance is this mentioned anywhere in documentation? I thought I'd read that pretty carefully.