Avatar paul.flynn.99 asked

Plain Inspire background

Hi,

Inspire is amazing, but how do I get a plain background? I have created a new profile and have not chosen to enable the background, but I get one anyway. It would be nice to have 'none' or 'plain' or 'no image' as a choice in the Background drop-down menu in the Profile Editor.

Can I do this using custom.css? Or do I have to create a new Style? If so, what code would I change and where?
Thanks

  • General Question
  • Inspire

Edited

13 Answers

0

Avatar mustaq Yootheme Online answered

Look in , yoo_inspire/css/background/wave.css

.top-a-layer-1 {  
    -moz-animation: 10s linear 0s normal none infinite slide;  
    background: url("../../images/background/wave/wave_bg.jpg") no-repeat scroll 0 0 transparent;  
}  
.top-a-layer-2 {  
    background: url("../../images/background/wave/wave_mask.png") no-repeat scroll 0 0 transparent;  
}

That is the code responsible for the Wave image in top-a .

YOOgards

1

Avatar mustaq Yootheme Online answered

You can do either, your own style or some CSS in a custom location, the benefits are well know to you by now.

You can review the templates css/layouts.css and styles.css/style.css files for background images and then adjust

eg: yoo_inspire/css/layout.css

#block-main {  
    background: none repeat scroll 0 0 #FCFCFC;  
    border-bottom: 1px solid #FFFFFF;  
    padding: 30px 0 15px;  
}

in the above you can see a color being applied to the #block-main div . File locations will largely depend on your style in use.

YOOgards

Edited

1

Avatar christopher.joyner answered

In the past when I am lazy, I take my least favorite background image file and replace it with mine using the same name. This keeps it in the drop down menu.

1

Avatar mustaq Yootheme Online answered

Thanks, you can use the following in the location where you have your custom CSS defined,

    #block-top-a {  
        background: none;  
        overflow: hidden;  
        position: relative;  
    }  
    .no-top-a #block-top-a {  
        background-color: none;  
    }  
    .top-a-layer-1, .top-a-layer-2 {  
        height: 400px;  
        left: 50%;  
        margin-left: -1280px;  
        position: absolute;  
        top: 0;  
        width: 2560px;  
    }  
    .top-a-layer-1 {  
        -moz-animation: 10s linear 0s normal none infinite slide;  
        background: none;  
    }  
    .top-a-layer-2 {  
        background: none;  
    }  

.top-a-shadow {  
    bottom: 0;  
    box-shadow: none;  
    left: 0;  
    position: absolute;  
    right: 0;  
    top: 0;  
}  
body#page {  
    background: none repeat scroll 0 0 #FFFFFF;  
}

YOOgards

0

Avatar paul.flynn.99 answered

Thanks mustaq, but wouldn't this change it for everything?

I'm trying to get a solution that adds a new background option in the drop-down in the style editor, but keeping the existing ones as options, too.

Thanks

0

Avatar mustaq Yootheme Online answered

What I mean is that in creating your own Style, you must over rides the background CSS from the mentioned CSS files , so you own new Style will have backgrounds for the different divs as per your needs.

YOOgards

0

Avatar paul.flynn.99 answered

Hi mustaq,

I tried your fix and it didn't work. I am left with the 'wave' background in place. Not sure what's happened there!
Thanks

Edited

0

Avatar joseph.reyes answered

hello :)

i tried to apply the move fix and it didn't work for me either...i'm not the most experienced editing css anyways so i could have just done it wrong...

i want to have no background in top-a also...which file should i be editing? thanks for your time and patience :)

Edited

0

Avatar simon.welander answered

As a pragmatic and simple solution I use the same principle as Christopher above - just replace the image file with my own at the same size - it's quick and avoids most unforseen consequences.
Cheers.

Know someone who can answer? Share a link to this question via email or twitter.