Using different Themes w. different albums

I'm in the process of making different themes for different ZP albums. What an amazingly powerful feature! I've copied the default theme to new folders, edited and renamed my new themes in the theme_description.php files, etc. I originally copied over one of the Default CSS files ("light"), thinking I would make changes to it and save under new names.

When I test out a new theme, it seems to use the default "light.css" file. The browser shows this source code at the top of the new theme's album.php:

<head>
<title>Test Photo Gallery | first album</title>
<link rel="stylesheet" href="/mygallery/zenphoto/themes/newtheme/styles/light.css" type="text/css" />

This is obviously being generated from somewhere in my new theme, but I can't seem to find it. It is showing the proper theme folder, but how do I indicate the CSS file I want the theme to use?

I want it to use :
<link rel="stylesheet" href="/mygallery/zenphoto/themes/newtheme/styles/somenewfile.css" type="text/css" />

TIA for your continued assistance!

Comments

  • The default theme has an option for selecting the css--the "theme colors" option. What you need to do is put the file "somenewfile.css" into the "styles" folder in the them. Then use the admin/options/theme options to select "somenewfile"
  • os07 Member
    Wonderful! Perhaps a better label for the "colors" option might reflect the fact that you are actually selecting a CSS file? I would imagine that editing the themeoptions.php file like this would accomplish the same thing:

    function ThemeOptions() {
    setOptionDefault('Allow_comments', false);
    setOptionDefault('Allow_search', false);
    setOptionDefault('Theme_colors', 'somenewfile');

    By assigning different CSS via different themes I am able to have my site nav - complete with CSS selectors - appear and work on all ZP album.php pages. ZP's versatility is just great!
  • Well, people not versed in WEB design will may not have any idea what a CSS file is but they will notice the change in color schemes. That is why the wording is as it is.

    The setOptionDefault() calls do just that--set the default values for the options. So if the option has not previously been set it will have that value. It does nothing if the option has already been selected, which it will have been if the theme has been run already. The default will be what the admin sees the first time the theme is activated.
Sign In or Register to comment.