-
AuthorPosts
-
synapsis Friend
synapsis
- Join date:
- April 2007
- Posts:
- 234
- Downloads:
- 18
- Uploads:
- 28
- Thanks:
- 58
- Thanked:
- 19 times in 1 posts
January 19, 2013 at 7:42 am #184152Okay, if this theme were using the normal CSS methods for setting body backgrounds, this would be a piece of cake, but since it’s using LESS and CSS, I’m not sure how to go about doing it. I’ve looked at the forums (thinking this would be a common question) and I’ve looked at the other themes that have background images, thinking I could copy their LESS and CSS, and get my new background to show up, but it simply won’t. I’m clearly doing something wrong.
I see in the scaffolding settings in the Template Manager you can change the background COLOR, but no place to set a background image?
Please somebody… I need some help on this one. I was sure I could figure it out, but I’ve exhausted myself looking and trying what looks like it should work, but without any success.
Thanks in advance.
January 21, 2013 at 5:53 am #480542I have the same question – I need to add a background image and only can find the option to change the colour. I’m using the 2.5 version of the template.
Help please!
Ninja Lead ModeratorNinja Lead
- Join date:
- November 2014
- Posts:
- 16064
- Downloads:
- 310
- Uploads:
- 2864
- Thanks:
- 341
- Thanked:
- 3854 times in 3563 posts
January 21, 2013 at 6:53 am #480551@synapsis and @boost_it: You can change background on here
<blockquote>templates/ja_mero/less/variables.less</blockquote>
find and see it
// Scaffolding
// -------------------------
@ bodyBackground: #111;<- change it1 user says Thank You to Ninja Lead for this useful post
clrmedia Friendclrmedia
- Join date:
- October 2007
- Posts:
- 102
- Downloads:
- 18
- Uploads:
- 8
- Thanks:
- 17
- Thanked:
- 11 times in 1 posts
January 21, 2013 at 6:52 pm #480649Make the change in custom.css to avoid having a template update overwrite your change. I created a separate theme using ThemeMagic and use an “interface” directory in “images” to allow the client to update the look and feel of the website without requiring FTP access.
body {
background-image: url('../../../images/interface/header-bg.jpg');
background-repeat:repeat-x;
}
clrmedia Friendclrmedia
- Join date:
- October 2007
- Posts:
- 102
- Downloads:
- 18
- Uploads:
- 8
- Thanks:
- 17
- Thanked:
- 11 times in 1 posts
January 21, 2013 at 7:50 pm #480651Wow! Am I ever wrong. I just used “Compile LESS to CSS” and it overwrote custom.css. Fortunately, I maintain a local copy of the file.
January 22, 2013 at 4:17 am #480691Thanks for replying.
Still need help. I updated templates/ja_mero/less/variables.less with following line
@BodyBackground: url(../images/background.jpg);This isn’t working (background is white instead of the image I want). Is the syntax I used incorrect?
clrmedia Friendclrmedia
- Join date:
- October 2007
- Posts:
- 102
- Downloads:
- 18
- Uploads:
- 8
- Thanks:
- 17
- Thanked:
- 11 times in 1 posts
January 22, 2013 at 4:52 am #480702Make the change in /templates/ja_mero/css/custom.css using code similar to what I posted above. If you do make the change in variables.less, remove the extra space in @Bod_y…. and ensure your path is correct.
January 22, 2013 at 5:24 am #480707I have tried all the following in variables.less and none worked (syntax???) :
[MENTION=15235]BodyBackground: url(“../images/background.jpg”);[MENTION=15235]BodyBackground: url(“../images/background.jpg”);
[MENTION=15235]BodyBackground: { background:url(../images/background.jpg) top no-repeat; }
[MENTION=15235]BodyBackground: { background:url(“../images/background.jpg”) top no-repeat; }
My image is save in the templates/ja_mero/images folder. So I assume the path I’m using is correct.
January 22, 2013 at 5:26 am #480708Am I supposed to be using custom.css if recompiling variables.less overwrites the changes?
clrmedia Friendclrmedia
- Join date:
- October 2007
- Posts:
- 102
- Downloads:
- 18
- Uploads:
- 8
- Thanks:
- 17
- Thanked:
- 11 times in 1 posts
synapsis Friendsynapsis
- Join date:
- April 2007
- Posts:
- 234
- Downloads:
- 18
- Uploads:
- 28
- Thanks:
- 58
- Thanked:
- 19 times in 1 posts
January 23, 2013 at 12:15 am #480817Having already tried Ninja Lead’s suggestion (without success), I tried clrmedia’s suggestion after using the Template Manager to compile my LESS to CSS, and then setting the background in a custom.css file worked like a champ. Thanks to you both though. I’ve had less luck getting my other questions answered, so I really appreciate it that you took the time to answer this one.
-
AuthorPosts
This topic contains 11 replies, has 4 voices, and was last updated by synapsis 11 years, 11 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum