|
Written by Graham Spice, Kai Tomalik
|
|
Page 3 of 7 Template adjustment Here is one way to make the embedded Gallery2 look like the rest of your Joomla site. Disclaimer: this may not work with all templates and themes. 1) Download the Embed Color Pack by Steve Lineberry from the Gallery2 User Contributions and copy it into your /gallery2/modules/colorpack/packs directory. Maybe you have to download and install the Gallery 2 Color Packs Module before you get a "Color Pack" option in your theme setting 2) Set the embed color pack in your theme settings. Here is a screenshot of the Matrix theme.  Matrix settings 3) Edit your Joomla stylesheet (/templates/your_templatename/css/template_css.css) and add the text "!important" after the color for the css link items. For example: Code: a:link, a:visited { font-size: 12px; color: #CC9966 !important; text-decoration:none; font-weight: bold; } a:hover { text-decoration:underline; color:#FF0000 !important; }
a%3Alink%2C%20a%3Avisited%20%7B%0Afont-size%3A%2012px%3B%0Acolor%3A%20%23CC9966%20%21important%3B%0Atext-decoration%3Anone%3B%0Afont-weight%3A%20bold%3B%0A%7D%0Aa%3Ahover%20%7B%0Atext-decoration%3Aunderline%3B%0Acolor%3A%23FF0000%20%21important%3B%0A%7D
Adding "!important" to your stylesheet will help override the Gallery2 default colors for links, etc. 4) Edit the file "template_css.css" (/templates/your_templatename/css/template_css.css) of your current Joomla template and add the following code by Steve Lineberry. You would then need to change the color's and sizes as needed. Code by Steve Lineberry: #gallery{ color: black; font-size: 90% !important; } #gallery h1, h2, h3, h4, h5, h6, .giDescription, .autoCompleteBackground, .autoCompleteHighlight, .autoCompleteNotSelected, .autoCompleteNotSelected{ color : black !important; } #gallery table.gbDataTable th { background : #D4EAF8 !important; color : #666666 !important; } #gallery .gcBackground1, .gbEven { background-color: transparent !important; } #gallery .gcBackground2, .gbOdd { background-color: transparent !important; } #gallery .summary{ color: #666666; } #gsHeader { display : none; }
%23gallery%7B%0Acolor%3A%20black%3B%0Afont-size%3A%2090%25%20%21important%3B%0A%7D%0A%23gallery%20h1%2C%0Ah2%2C%0Ah3%2C%0Ah4%2C%0Ah5%2C%0Ah6%2C%0A.giDescription%2C%0A.autoCompleteBackground%2C%0A.autoCompleteHighlight%2C%0A.autoCompleteNotSelected%2C%0A.autoCompleteNotSelected%7B%0Acolor%20%3A%20black%20%21important%3B%0A%7D%0A%23gallery%20table.gbDataTable%20th%20%7B%0Abackground%20%3A%20%23D4EAF8%20%21important%3B%0Acolor%20%3A%20%23666666%20%21important%3B%0A%7D%0A%23gallery%20.gcBackground1%2C%20.gbEven%20%7B%20background-color%3A%20transparent%20%21important%3B%20%7D%0A%23gallery%20.gcBackground2%2C%20.gbOdd%20%7B%20background-color%3A%20transparent%20%21important%3B%20%7D%0A%23gallery%20.summary%7B%20color%3A%20%23666666%3B%20%7D%0A%23gsHeader%20%7B%20display%20%3A%20none%3B%20%7D
5) If you want to change the CSS of Gallery instead of your Joomla template edit the file "theme.css" in your choosen Gallery2 theme. For example, the Matrix theme's "theme.css is located in the /gallery2/themes/matrix directory. Replace the Gallery2 theme's background color with the background color from your Joomla site template or remove the color to make the background transparent. Here are the most important classes to modify to change the Gallery2 theme's background color or font size: Code: #gallery { font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 62.5%; color: #333; background-color: transparent; } body.gallery { background-color: transparent; } .gcBackground1 { background-color: transparent; } .gcBackground2 { background-color: transparent; }
%23gallery%20%7B%0Afont-family%3A%20Verdana%2C%20Arial%2C%20Helvetica%2C%20sans-serif%3B%0Afont-size%3A%2062.5%25%3B%0Acolor%3A%20%23333%3B%0Abackground-color%3A%20transparent%3B%0A%7D%0Abody.gallery%20%7B%0Abackground-color%3A%20transparent%3B%0A%7D%0A.gcBackground1%20%7B%0A%20background-color%3A%20transparent%3B%0A%7D%0A.gcBackground2%20%7B%0Abackground-color%3A%20transparent%3B%0A%7D
Of course you can change everything in the theme.css until you like it.  | To change the Gallery image or the descriptions like Date, Owner, Size, etc. take a look at the .tpl files in the "templates" directory of your chosen Gallery2 theme. For example, the Matrix theme's directory is located here: gallery2/themes/matrix/templates/ directory |
|