Adding background image/texture to mobile style

Modifications for phpBB3.
Try the Mods here and share Your own Mods
Forum rules
You dont have to use ModX or make your mod AutoMod compatible. A simple textfile is fine
But if you post Mods here You also have to give support

Adding background image/texture to mobile style

Post by techman41973 »

Just like this site, I'm using the Artodia mobile theme for my mobile visitors to my forum.
I'm trying to add a background image (texture) to the Artodia mobile theme.
I added the image file (image.jpg) to /home/mydomain/public_html/forum/styles/art_mobile/theme/images/backgrounds
Then I updated the file style.css (/home/mydomain/public_html/forum/styles/art_mobile/theme/style.css)
added the following lines.

Code: Select all

background-image: url("{T_THEME_PATH}/images/backgrounds/image.jpg");
background-repeat: repeat; 
I added these lines under

Code: Select all

  background-color: #fff;
This didn't work. No backgound or texture appears on my mobile site.
I cleared the browser cache, tried viewing my mobile site from both a smartphone and desktop.
Then I tried removing the line
background-color: #fff;

Just to test if my updates were coming through, I temporarily changed
background-color: #fff;
to background-color: #000;
and indeed the background color changed to solid black.

I'm not sure what is going wrong. I would appreciate some guidance.
I tried posted to the Artodia discussion forum.
Thanks

Adding background image/texture to mobile style

Post by Stoker »

background: url("{T_THEME_PATH}/images/backgrounds/image.jpg");
Without the -image it should work

Adding background image/texture to mobile style

Post by techman41973 »

Thanks for catching that. I will try it out.