I'd like to modify my gallery pages. I know enough to edit html, even with php, but I can't work out which file contains the html of the main page of the gallery because it's all dynamic linking. At a guess, theme.css is the style sheet. Is there a tutorial anywhere?
Posts: 32509
g2 .tpl files are a mix of HTML and "smarty" code. smarty is a pretty simple markup / scripting language.
themes/yourtheme/templates/*.tpl are the main template files.
each module has its own templates in modules/*/templates/ as well.
see:
http://codex.gallery2.org/Gallery2:Themes
--------------
Doumentation: Support / Troubleshooting | Installation, Upgrade, Configuration and Usage
Posts: 3
My friend got this to so she could put galleries on her site. I know a little php just enough to be dangerous LOL. Is there a way I could add a background image to the theme?
Posts: 21
I went about this a little differently than I think most do- I made a page (called it new.php) and designed a style into it. I then made additions to a .css outside of gallery theme.css and linked them to (new.php). Inside of new.php I left a DIV tag open (this div defines what I want in the body of the displayed page).
I modified the layout of the gallery and subsequent pages so it would fit into this DIV, this entailed losing the sidebars and such- no biggie...
On the gallery/main.php I did a simple php include pointing to the new.php- whah-la, instant integration into my site. Works for me, is this what you were asking?
Site URL=http://www.downeastcyclingclub.com, which is the main page, and you can use the 'gallery' link to see how it integrates into the rest of the sites pages seamlessly. The only issue I have I have not addressed (that I care enough to fix that is) is when someone increases the size to a degree larger than the DIV tag allows, it goes below in IE and creates lateral scroll in FF. But I am happy with what I got as is, there are ways around it I may explore though.