Correct way to edit template/theme Correct way to edit template/theme
 

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Main Menu

Correct way to edit template/theme

Started by Desert Rider, January 24, 2009, 07:02:33 PM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Desert Rider

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 ???
Rick Wickert
If you think nobody cares about you, try missing a couple of payments.

Nibbler

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.

Desert Rider

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.
Rick Wickert
If you think nobody cares about you, try missing a couple of payments.