Background Image Please

Rate this topic: Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.Evaluations: 1, 1.00 on the average.1.00 out of 6 based on 1 vote(s)
GK User
Sat Jun 22, 2013 7:39 am
Reply with quote
Report this post
Please guys tell me how to add a background image to the site
User avatar
Platinum Boarder

GK User
Sat Jun 22, 2013 8:52 am
Reply with quote
Report this post
Please edit: /templates/gk_rockwall/css/override.css and add at its end:
Code: Select all
#gkPageContentWrap {background: #FFF url('../img/backgroundimage.jpg') 50% 0;}


Place image file in /templates/gk_rockwall/img/ (backgroundimage.jpg), that is 1920px wide and long as You like. It will be centered horizontally.

Remember to enable "CSS override" in template settings - advanced section.
User avatar
Moderator

GK User
Sat Jun 22, 2013 5:22 pm
Reply with quote
Report this post
It doesn't work
User avatar
Platinum Boarder

GK User
Sun Jun 23, 2013 5:03 pm
Reply with quote
Report this post
Helllo?
User avatar
Platinum Boarder

GK User
Sun Jun 23, 2013 8:50 pm
Reply with quote
Report this post
Could You post an URL to your site, where the code is added?
User avatar
Moderator

GK User
Mon Jun 24, 2013 6:34 pm
Reply with quote
Report this post
I sent you private message.
User avatar
Platinum Boarder

GK User
Tue Jun 25, 2013 6:47 am
Reply with quote
Report this post
There is no bg2.jpg file in folder:
/templates/gk_rockwall/backgrounds/

Also, You should not create additional folders in root of template folder, use already existing /img/ instead, so You should place background file in:
/templates/gk_rockwall/img/backgrounds/
and in css also use:
Code: Select all
#gkPageContentWrap {background: #FFF url('../img/backgrounds/bg2.jpg') 50% 0;}
User avatar
Moderator

GK User
Tue Jun 25, 2013 10:59 am
Reply with quote
Report this post
what are you talking about there is not " img" folder in the template . Also the reason you did not see the image is because i took it off because it did not work. Go look now I placed bg1.jpg image inside the images folder already in the template and use your code like that
Code: Select all
#gkPageContentWrap {background: #FFF url('../images/bg1.jpg') 50% 0;}
and nothing happens
User avatar
Platinum Boarder

GK User
Tue Jun 25, 2013 11:14 am
Reply with quote
Report this post
apanou wrote:what are you talking about there is not " img" folder in the template . Also the reason you did not see the image is because i took it off because it did not work. Go look now I placed bg1.jpg image inside the images folder already in the template and use your code like that
Code: Select all
#gkPageContentWrap {background: #FFF url('../images/bg1.jpg') 50% 0;}
and nothing happens

I just checked it in firefox it works But I can't see it in chrom
User avatar
Platinum Boarder

GK User
Tue Jun 25, 2013 5:40 pm
Reply with quote
Report this post
It is there - in Chrome.
Clear cache or force reload with ctrl+r - it helps sometimes.
User avatar
Moderator

GK User
Wed Jun 26, 2013 10:52 am
Reply with quote
Report this post
It works Thanks. Can you help me make it no-schroll? Also it;s seems to repeat.
User avatar
Platinum Boarder

GK User
Wed Jun 26, 2013 12:54 pm
Reply with quote
Report this post
Code: Select all
#gkPageContentWrap {background: #FFF url('../images/bg1.jpg') 50% 0 no-repeat;}

adding no-repeat makes it no repeat ;)
Code: Select all
#gkPageContentWrap {background: #FFF url('../images/bg1.jpg') 50% 0 no-repeat;
background-position:fixed;}

adding aditional background-position: fixed makes it no scroll.
User avatar
Moderator

GK User
Wed Jun 26, 2013 7:00 pm
Reply with quote
Report this post
the no-repeat works but the no-scroll doesn't
User avatar
Platinum Boarder

GK User
Wed Jun 26, 2013 7:03 pm
Reply with quote
Report this post
Code: Select all
#gkPageContentWrap {background: #FFF url('../images/bg1.jpg') 50% 0 no-repeat;
background-attachment: fixed;}

sorry, my mistake.
User avatar
Moderator

GK User
Wed Jun 26, 2013 7:31 pm
Reply with quote
Report this post
Thanks. It works.
User avatar
Platinum Boarder


cron