Hi everybody,
is there a possibility to change "phocagallery-box-file" background image, because now it is white, and my site has a textured background image which is not white. I searched various CSS files but couldn't find a solution for that.
phocagallery-box-file background image
-
millennium
- Phoca Newbie

- Posts: 3
- Joined: 11 May 2010, 16:06
- Location: Lithuania
- Contact:
-
imperialWicket
- Phoca Enthusiast

- Posts: 78
- Joined: 28 Feb 2010, 15:39
Re: phocagallery-box-file background image
Assuming you are in category view - In the Phoca Gallery Parameters, find the "Background color" option in the "Category View Settings (List of Images)". I think it defaults to #fcfcfc, change this to the color you want; I think "none" will also achieve a transparent background for the phocagallery-box-file div.
-
millennium
- Phoca Newbie

- Posts: 3
- Joined: 11 May 2010, 16:06
- Location: Lithuania
- Contact:
Re: phocagallery-box-file background image
Thank you very much imperialWicket for your answer, it helped a lot of getting rid of that white space, maybe you know how to change the background image of it with other image, i need to phocagallery-box-file background image to be a few tones brighter than my background image, it would be perfect.imperialWicket wrote:Assuming you are in category view - In the Phoca Gallery Parameters, find the "Background color" option in the "Category View Settings (List of Images)". I think it defaults to #fcfcfc, change this to the color you want; I think "none" will also achieve a transparent background for the phocagallery-box-file div.
By the way do you know a way to rotate phocagallery-box-file generated div from vertical to horizontal position. This is a piece of my code: <div class="phocagallery-box-file" style="height:158px; width:120px;"><div class="phocagallery-box-file-first" style="height:118px;width:118px;margin: auto"><div class="phocagallery-box-file-second"><div class="phocagallery-box-file-third"><a class="" href="... It would be perfect if it could be 220px height and 120 width. Thank you
-
imperialWicket
- Phoca Enthusiast

- Posts: 78
- Joined: 28 Feb 2010, 15:39
Re: phocagallery-box-file background image
You should be able to use a background image using the same parameter. Instead of providing it with a color, just give it a background image. Something like this works for me:
The height/width are determined dynamically based on your image size and other parameters. If you want to override these and just hard-code a value, it's on line 115 of /components/com_phocagallery/views/category/tmpl/default.php. Replace the current:
with:
That should do it, hope this works for you.
Code: Select all
url("../images/powered_by.png") no-repeat scroll 0 0 transparentCode: Select all
echo '<div class="phocagallery-box-file" style="height:'. $imageHeight['boxsize'].'px; width:'.$imageWidth['boxsize'].'px;">';Code: Select all
echo '<div class="phocagallery-box-file" style="height:220px; width:120px;">';