Put the fixed template background

GK User
Tue May 14, 2013 9:17 pm
Someone could explain me how to put the template name fixed and tried everything. Also e seen that a user using the same template that I have the background set but I can not fix it. You have to touch some code? A greeting.
User avatar
Senior Boarder

GK User
Tue May 14, 2013 9:42 pm
If You would like to set background image of a page to be fixed, You need to edit at least one CSS file.
Please provide URL to your site, then I will be able to tell You step by step what to do.
User avatar
Moderator

GK User
Tue May 14, 2013 9:51 pm
Hi,
can you give us url to your website ? It will be much easier to help you.
User avatar
Gold Boarder

GK User
Tue May 14, 2013 10:23 pm
User avatar
Senior Boarder

GK User
Tue May 14, 2013 10:39 pm
Please enable override.css in your template settings, then edit:
/templates/gk_gamenews/css/override.css
and add at its end:
Code: Select all
body {background-attachment:fixed;}
User avatar
Moderator

GK User
Tue May 14, 2013 10:47 pm
Cyberek wrote:Please enable override.css in your template settings, then edit:
/templates/gk_gamenews/css/override.css
and add at its end:
Code: Select all
body {background-attachment:fixed;}

I fail to set the background as you have told me. I pass the settings

http://gyazo.com/0244d7b0ac5f1bd43001e53d29899d7e
User avatar
Senior Boarder

GK User
Tue May 14, 2013 11:02 pm
Please do exactly as I have suggest in my post.
User avatar
Moderator

GK User
Tue May 14, 2013 11:04 pm
Please do exactly as I have suggest in my post.

But if You really, really need to do it from backend, than this code will work:
Code: Select all
body {background-attachment: fixed !important;}
User avatar
Moderator

GK User
Tue May 14, 2013 11:12 pm
Right had edited the file but did not work. For that answer.
User avatar
Senior Boarder

GK User
Tue May 14, 2013 11:24 pm
Already resolved. I added the code you gave me and what canbie now enclose
Change these lines in the file /templates/gk_gamenews/css/template.css
Code: Select all
body[data-bg="1"] {

   background: #f4f4f4 url('../images/bg1.jpg') no-repeat center 0;

}

For
Code: Select all
body[data-bg="1"] {

   background: #f4f4f4 url('../images/bg1.jpg') no-repeat center 0; background-attachment: fixed

}
User avatar
Senior Boarder

GK User
Tue May 14, 2013 11:41 pm
You should not edit template.css file directly.

To use override.css You need to enable it's use firstly in template settings, than everything works as it should.
User avatar
Moderator


cron