Jump to content

Change Background Color But Keep White In Center Of Page Ps 1.6


Recommended Posts

Hi.

 

I have a problem that i would like to have some help with.

 

Im making a new website with ps 1.6.1.2 default theme.

 

I would like to change the background to a (color or picture) but keep the center of the page

white. Also i want the background to be still when i move down on the page.

 

I have tried to make changes in global.css but but nothing works.

 

I attach a picture how i mean of my old website made in ps 1.5

 

Regards

 

Plutten22

post-718236-0-86700600-1448371917_thumb.jpg

Link to comment
Share on other sites

  • 2 weeks later...

Can you put link to your site not possible to see from image ?

 

But it should not be hard to do that, for background maybe position fixed or background-size: cover.

And to central be white you probably need to change color in few places. 

Link to comment
Share on other sites

Hi

 

Thank you for responding. :):D

 

I am developing a new site with Ps 1.6 based on my existing site that is made in ps 1.5

 

Link to new site: www.cykelstaden.se/cykelstaden2013

 

Existing site: www.cykelstaden.se

 

I would appreciate very much if you can help me.

 

Regards

 

Plutten22

Link to comment
Share on other sites

Well there is some work there. Generally you need to remove background from wrapper element and applied same style to container inside.

And there are some styles from theme6 that you need to override or comment out.

body {
    background-color: #282828;
    background: url(http://www.cykelstaden.se/themes/default/css/../img/stockholm.jpg) no-repeat center center fixed;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
}

Here are some code are commented out just for reference, where exactly it is you will see when you disable smarty cache for CSS but probably in global.css and in themeconfigurator/css/theme6

.header-container, .columns-container {
    /* background: url(http://www.cykelstaden.se/cykelstaden2013/modules/themeconfigurator/css/../img/bg-theme6.jpg) repeat 50% 0; */
}
body, #page, header, .columns-container {
    /* background: #D3D3D3!important; */
    /* background-image: none!important; */
}
.header-container {
    background: transparent;
}

#header {
    /* background: url(http://www.cykelstaden.se/cykelstaden2013/modules/themeconfigurator/css/../img/bg-theme6.jpg) repeat 50% 0; */
}

header .banner {
    background: transparent;
    max-height: 100%;
}

header .nav {
    background: transparent;
}

header .nav .container {
    background: #333;
}

.container {
    background: #fff;
}

.footer-container {
    background: transparent !important;
}

.footer-container #footer {
    color: #777777;
    background: #3f3f3f;
    padding: 0 15px;
}


And maybe you need some padding but you can add that later. Also if you want transparent background use

.container {
    background: rgba(255,255,255,0.75);
}
  • Like 1
Link to comment
Share on other sites

Hi

 

Tanks for your reply.

 

1. I have never disable smarty cache and i dont understand what it does and how it works and what it can help me whith.

But i would like to learn. :)

 

2. I viewed the theme6 folder on the ftp server but it did not look like anything you showed.

 

3. I viewed the global.css  in themes/default-bootstrap/css/global.css and it also did not look like you showed.

 

I would appreciate if you could explain more precisely where and what i need to change if it is possible.

 

I have tried to find others who have wanted to do this but have not found anyone that has written about it in the forum.

 

Hope you can help me. :)

 

Plutten22

Link to comment
Share on other sites

Ok can not confirm that this will work as you have smart cache for css enabled

so all css is in one file but try this. Add following code at the end of global.css

.header-container, .columns-container {
     background: none !important; 
}
body, #page, header, .columns-container {
     background: inherit !important;
     background-image: inherit !important;
}
.header-container {
    background: transparent !important;
}

#header {
    background: none !important;
    padding-bottom: 0 !important;
}

header .banner {
    background: transparent !important;
    max-height: 100% !important;
}

body {
    background-color: #282828 !important;
    background: url(http://www.cykelstaden.se/themes/default/img/stockholm.jpg) no-repeat center center fixed !important;
    -webkit-background-size: cover !important;
    -moz-background-size: cover !important;
    -o-background-size: cover !important;
    background-size: cover !important;
}

header .nav {
    background: transparent !important;
}

header .nav .container {
    background: #333 !important;
}

.container {
    background: rgba(255,255,255,0.75) !important;
}

.footer-container {
    background: transparent !important;
}

.footer-container #footer {
    color: #777777 !important;
    background: #3f3f3f !important;
    padding: 0 15px !important;
}

If this code is not displaying ok disable Smart cache for css in back office Advanced Parameters > Performance and also clear cache by clicking 

button in top right corner of that page.That way I could check.

Edited by razaro (see edit history)
Link to comment
Share on other sites

You are right , I apologize, it have connection with container width.

You can try to edit this code to

@media (min-width: 1200px)
.container {
    max-width: 1190px;
}

that influence on this JavaScript code in global.js I think

 

function blockHover(status)
{var screenLg=$('body').find('.container').width()==1170;
.....

 

so maybe you do not need to change that container width in css but just change this js value 1170 to 1150. 

It is total padding you added 2*10px.

Link to comment
Share on other sites

  • 5 weeks later...

Hey guys, 

 

I'm really stuck here and I need HELP! :I

 

I screwed up with my Global.css and there is no back up. 

 

My problem is that I can't change the colour of my background into white and I have accidentally changed the top bar and my attempts of fixing it clearly failed. 

I just want to have a plain white background an no grey tones at all. 

 

forum_presta.jpg

 

 

Can anyone help here please?

 

 

Raheem

Edited by Raheem429 (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...