Backgroung question

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
Mon Apr 14, 2014 1:52 pm
Reply with quote
Report this post
Hi Guys!

I would like to change the second and third background images (bg2, bg3.jpg) in the template.
The bg1 (original one) appears in a single version in the background, but the bg2 (a new background copied to template library as bg2) apears continously until the bottom.
I would like to see the bg2 (and bg3 later) as same single as bg1. What do I have to do?

Thanks!

gallowsbird
User avatar
Senior Boarder

GK User
Mon Apr 14, 2014 2:58 pm
Reply with quote
Report this post
Could You please post an url to your site?
User avatar
Moderator

GK User
Mon Apr 14, 2014 3:19 pm
Reply with quote
Report this post
virtualmagazin.hu
User avatar
Senior Boarder

GK User
Mon Apr 14, 2014 7:57 pm
Reply with quote
Report this post
Please edit: /templates/gk_gamenews/css/override.css and add at its end:
Code: Select all
body[data-bg="2"] {
   background-position: center 0;
   background-repeat:no-repeat;
}
body[data-bg="3"] {
   background-position: center 0;
   background-repeat:no-repeat;
}

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

GK User
Tue Apr 15, 2014 9:52 am
Reply with quote
Report this post
Hi!

I enabled the CSS override and copy your code. Is it ok like this?
I think a missed something because he background still repeating:
Image
User avatar
Senior Boarder

GK User
Tue Apr 15, 2014 5:06 pm
Reply with quote
Report this post
Your override.css looks like this:
Code: Select all
/    body[data-bg="2"] {
       background-position: center 0;
       background-repeat:no-repeat;
    }
    body[data-bg="3"] {
       background-position: center 0;
       background-repeat:no-repeat;
    }
/

/* Here you can include your override CSS styles */

and should look like this:
Code: Select all
body[data-bg="2"] {
   background-position: center 0;
   background-repeat:no-repeat;
}
body[data-bg="3"] {
   background-position: center 0;
   background-repeat:no-repeat;
}
User avatar
Moderator

GK User
Wed Apr 16, 2014 11:11 am
Reply with quote
Report this post
Hi Cyberek!

Thank you, your code has solved the problem as always :) What do I have to do if I want to do the same with bg3 background. Copy the code again into the override css and replace the bg2 to bg3 inth the duplicated code?

Other question:
I set up the Taps module. I used NSP TAb 1,2,3 modules to set up the data source. BUT an original text 'here is custom module' still apears in the TAB. I tried to delete this text but I did not find where it is. I could not find it nor in the Tabs module, nor in the NSP Tab 1 module but is still visible on the site. Where can I find it to remove?

Thanks!
Image
User avatar
Senior Boarder

GK User
Thu Apr 17, 2014 3:22 pm
Reply with quote
Report this post
It looks like you have left a custom html module with this text somewhere.
User avatar
Moderator


cron