EnglishI try to give my theme (stripped) a background image. Directly addet to the responsible css file in the theme it is no problem. But trying it wit the local files editor gives no change:
Here my setting in local/css/rules.css
/* Die Datei ist nicht vorhanden und wird erstellt vom Localfiles Editor */
BODY
{
background: url("images/bg.jpg") repeat-x fixed 50% 0 #000000;
background-color: #000000;
}
And an additional question. Is there anywhere a documention how to use the plugin localfiles editor?
Last edited by alexpreyer (2012-01-05 13:41:51)
Offline
Hello
I assume this is not : http://www.fotos.preyer.net Or if it is the gallery, can you set stripped as the theme ?
try
BODY
{
background: url("images/bg.jpg") repeat-x fixed 50% 0 #000000 !important;
}
Offline
No, its on http://alex-finest.de
And your hint doesn't help, sorry.
Offline
alexpreyer wrote:
No, its on http://alex-finest.de
And your hint doesn't help, sorry.
Okay, in fact your path to the picture don't work. Correct it and it will work
Offline
It was not only the path. After inserting in the themes css (stripped-rules.css) it worked.
Whats the difference between rules.css and "theme-name"-rules.css ?
Thanks for you help - I love this gallery and the way you get fast and professional help here in the forum.
Offline
alexpreyer wrote:
It was not only the path. After inserting in the themes css (stripped-rules.css) it worked.
Whats the difference between rules.css and "theme-name"-rules.css ?
Thanks for you help - I love this gallery and the way you get fast and professional help here in the forum.
Piwigo combine all the CSS files in one : so it redefines the path. For stripped-rules.css it seems to refer to /themes/stripped/ and for rules.css, to local/css/
Offline
It's really strange. Now, after finishing my tests, I installed a new piwigo gallery in a subfolder of my new homepage (a new piwigo installation). Then I tried there to customize the stripped theme in the same way as in my test installation. And again, nothing happens. The background jpg is in the same subfolder as it was in the test environment and also the css settings in stripped-rules.css are the same. But no background picture apears - thats ridicoulus, isnt it?
The new URL is: http://www.preyer.net/galerie/
Offline
alexpreyer wrote:
It's really strange. Now, after finishing my tests, I installed a new piwigo gallery in a subfolder of my new homepage (a new piwigo installation). Then I tried there to customize the stripped theme in the same way as in my test installation. And again, nothing happens. The background jpg is in the same subfolder as it was in the test environment and also the css settings in stripped-rules.css are the same. But no background picture apears - thats ridicoulus, isnt it?
The new URL is: http://www.preyer.net/galerie/
this time I don't see the CSS attribute : seems to be an other problem, like not saved...
Offline
Sorry, for the moment I deleted the code because I'm only using the Header.
I put it back in again, so that you can see it again.
I also tried to use the complete path to the file (www.preyer.net/galerie/themes/stripped/images/bg.jpg), but also no success.
An Interesting thing, the color setting to #000000 works. Only the picture is not shown.
BODY
{
background: url("/themes/stripped/images/bg.jpg") repeat-x fixed 100% 0 #000000 !important;
}
Offline
try with ../../themes/stripped/images/bg.jpg
Offline
Ok, that works -what a pain to get there. Thanks for your big effort. Now I try to understand why and also why the setting, working in my test environment, not worked here.
Offline
Oh, and again. I love your stripped themes. Their simplicity, showing only the important part - the photos - are absolute great. Really great work you have done here.
Well, tomorrow I have to try to get the album frames bigger :-)
Offline
alexpreyer wrote:
Ok, that works -what a pain to get there. Thanks for your big effort. Now I try to understand why and also why the setting, working in my test environment, not worked here.
the path need to be related to file you put it in : here the file is local/css/fvgzhfn.css and the image themes/stripped/images/bg.jpg, so we need to go to level up "../../" to retrieve the root of Piwigo. then "themes/stripped/images/bg.jpg". Then Piwigo manage itself the path (assuming they are correct at the beginning ^^) to combine all CSS code in one file : absolute path "mysite.com/blabla" don't work currently with that combination system
Offline
alexpreyer wrote:
Oh, and again. I love your stripped themes. Their simplicity, showing only the important part - the photos - are absolute great. Really great work you have done here.
Well, tomorrow I have to try to get the album frames bigger :-)
Zaphod will be happy to see such enthusiasms ^^
just a hint for customization : [Forum, post 126333 by flop25 in topic 18476] default font type & font size
Last edited by flop25 (2012-01-06 23:47:52)
Offline