giving 2.3.1 a white background wrapper?
#-19
Posted 30 November 2010 - 10:31 PM
I am trying to change the colour of my main store (960 width) to white. I have changed the page background, but it has changed the whole page.
I have tried giving #bodyWrapper a background of white, but it only changes the top header bar to white.
Is there a way to give the 960 with a wrapper and a background?
Thanks
#-18
Posted 01 December 2010 - 07:54 AM
toolman, on 30 November 2010 - 10:31 PM, said:
I am trying to change the colour of my main store (960 width) to white. I have changed the page background, but it has changed the whole page.
I have tried giving #bodyWrapper a background of white, but it only changes the top header bar to white.
Is there a way to give the 960 with a wrapper and a background?
Thanks
In file includes/template_bottom.php floats need to be cleared before the "bodywrapper" div close
<?php require(DIR_WS_INCLUDES . 'footer.php'); ?> <div class="clear"></div> </div> <!-- bodyWrapper //-->and css
.clear {
clear: both;
}
Look here
#-17
Posted 01 December 2010 - 10:26 AM
#-16
Posted 01 December 2010 - 04:50 PM
toolman, on 01 December 2010 - 10:26 AM, said:
Yes thank you as I have to been struggling with this!
How to install jQuery Nivo Slider in osCommerce 2.3.3
Join Us On Facebook & Twitter Infobox
#-15
Posted 31 December 2010 - 10:47 AM
I am not a coder, so dont bother sending PMs asking for help as you wont get any.
OSC has a steep learning curve, but in general the program does work. If it doesnt work, the chances are it is something you have done.
#-14
Posted 31 December 2010 - 01:28 PM
14steve14, on 31 December 2010 - 10:47 AM, said:
Steve,
An easy way of changing the footer background color is in includes/footer.php find
<div class="grid_24 footer">
change to:
<div class="grid_24 footer footer_background">
then add this to your stylesheet
.footer_background {
background:#f6f6f6;
}
and change the color to the color you require.
How to install jQuery Nivo Slider in osCommerce 2.3.3
Join Us On Facebook & Twitter Infobox
#-13
Posted 06 May 2011 - 04:43 AM
#-12
Posted 07 May 2011 - 04:11 AM
FabioW, on 06 May 2011 - 04:43 AM, said:
What white frame do you mean? I'm sorry but it is not clear to me, can you say a little more what you did and where the "white frame" appear? An url would be helpful
#-11
Posted 09 May 2011 - 07:32 PM
backgruond is green and there is a picture located in top center,
picture in header and i have removed white bars on sides of header by changing in includes/header.php <div id="header" class="grid_24"> to <div id="header">
I have changed bodywrapper to white using http://multimixer.gr/01/12/2010/how-to-set-backgrounds-in-oscommerce-version-2-3-1/
And now when I have changed footer color to green I have white bars on sides of the footer. How can I remove them or change to green??
#-10
Posted 10 May 2011 - 04:40 AM
You can do following changes
1) In your file catalog/includes/footer.php find
<div class="grid_24 footer footer_background">change to
<div class="grid_24 alpha omega footer footer_background">
2) In file catalog/stylesheet.css find
.footer_background {
background: none repeat scroll 0 0 #D5FE74;
}
change to.footer_background {
background: #D5FE74;
width: 960px !important;
}
Edited by multimixer, 10 May 2011 - 04:41 AM.
#-9
Posted 10 May 2011 - 06:46 PM
1 Where can I change color or put some background picture of place under the footer where is banner?
http://www.barnsparadis.com/
Regards, FabioW
Edited by FabioW, 10 May 2011 - 06:57 PM.
#-8
Posted 10 May 2011 - 07:49 PM
Regards, FabioW
#-7
Posted 10 May 2011 - 07:56 PM
Quote
This is saying the same thing, but perhaps more accurately or usefully would be to say that this white frame is the background color of #bodyWrapper id (set in stylesheet.css) in the first <div> tag inside the <body> tag. The width of this border is the default 960 grid system margin (.container_(variable) class in the same div, which is set in ext/960gs/960.css or ext/960gs/960_24_col.css or rather the admin.)
In others words to deal with that margin you need to go two places, unless you just change the background color.
OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120
#-6
Posted 11 May 2011 - 04:49 PM
And there is nothing I can do to make this white spot green??
PS.
I have tried to set margins in ext/960gs/960_24_col.css to 0 but then everything has moved left.
#-5
Posted 11 May 2011 - 05:24 PM
Everything can be done, post your includes/footer.php file here
Edited by multimixer, 11 May 2011 - 05:25 PM.
#-4
Posted 11 May 2011 - 06:05 PM
There will be a variety of ways to change the look of margins in the html and/or stylesheet.css. Are you familiar with the developer tools on Firefox? Try looking at, in Firefox, tools>webdeveloper>information>id and class details. Lots of good stuff.
Edited by npn2531, 11 May 2011 - 06:05 PM.
OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120
#-3
Posted 11 May 2011 - 06:29 PM
<?php
/*
$Id$
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright © 2010 osCommerce
Released under the GNU General Public License
*/
require(DIR_WS_INCLUDES . 'counter.php');
?>
<div class="grid_24 alpha omega footer footer_background">
<p align="center"><?php echo FOOTER_TEXT_BODY; ?></p>
</div>
<?php
if ($banner = tep_banner_exists('dynamic', '468x50')) {
?>
<div class="grid_24" style="text-align: center; padding-bottom: 20px;">
<?php echo tep_display_banner('static', $banner); ?>
</div>
<?php
}
?>
<script type="text/javascript">
$('.productListTable tr:nth-child(even)').addClass('alt');
</script>
The 960 css file is back like it was before.
I didn't know about the developer tools on firefox, but I will check that.
I was hoping that I will be able to edit this element like for example header in stylesheet.css (put backgroudn image, change height, etc.).
#-2
Posted 11 May 2011 - 06:52 PM
Put all the inline styling like that below into the stylesheet.css.
style="text-align: center; padding-bottom: 20px;
create a new class if you have to. It puts all the styling in one place and easier to deal with, and reduces the chance of css conflicts.
for example change it to:
<div class="grid_24 new_class" >
and in the stylesheet.css add:
.new_class {text-align:center;padding-bottom:20px;}
OSC to CSS, http://addons.oscommerce.com/info/7263 -Mail Manager, http://addons.oscommerce.com/info/8120
#-1
Posted 11 May 2011 - 08:25 PM
Anyway, I like the margins around "bodywrapper". All I want to know is how to make this white spot under the OSCOMMERCE banner green, change it height and maybe put there some picture.
If this will be usefull here are changes I have made:
Change Header - background picture, height.
#header {
height: 218px;
background-image: url('images/header7.jpg');
}
Remove Header margins:
In includes/header.php change:
<div id="header" class="grid_24">
To:
<div id="header">
Background Picture
In stylesheet.css:
body {
background: #d5fe74;
color: #000;
background-image: url('images/tlo.jpg');
background-repeat: no-repeat;
background-position: center top;
margin: 0px;
font-size: 11px;
font-family: Lucida Grande, Lucida Sans, Verdana, Arial, sans-serif;
}
Change Background and bodywrapper coluor
http://multimixer.gr/01/12/2010/how-to-set-backgrounds-in-oscommerce-version-2-3-1/
Change Footer color, hight and add image
In includes/footer.php find
<div class="grid_24 footer">
change to:
<div class="grid_24 footer footer_background">
then add this to your stylesheet
.footer_background {
background:#d5fe74;
height: 194px;
background-image: url('images/footer.jpg');
}
Remove Footer margins:
1) In your file catalog/includes/footer.php find
<div class="grid_24 footer footer_background">
change to
<div class="grid_24 alpha omega footer footer_background">
2) In file catalog/stylesheet.css find
.footer_background {
background: none repeat scroll 0 0 #D5FE74;
}
change to
.footer_background {
background: #D5FE74;
width: 960px !important;
}
Best regards, FabioW
#0
Posted 12 May 2011 - 04:52 AM
<div class="grid_24 alpha omega footer footer_background">
<p align="center"><?php echo FOOTER_TEXT_BODY; ?></p>
</div>
<?php
if ($banner = tep_banner_exists('dynamic', '468x50')) {
?>
<div class="grid_24" style="text-align: center; padding-bottom: 20px;">
<?php echo tep_display_banner('static', $banner); ?>
</div>
<?php
}
?>
Change it to this
<div class="grid_24 alpha omega footer footer_background">
<p align="center"><?php echo FOOTER_TEXT_BODY; ?></p>
<?php
if ($banner = tep_banner_exists('dynamic', '468x50')) {
?>
<div class="banner_position">
<?php echo tep_display_banner('static', $banner); ?>
</div>
<?php
}
?>
</div>
and to your stylesheet.css file
.footer .banner_position{text-align: center; padding-bottom: 20px;}
To put there "some picture", do to your admin>tools>banner manager make a new banner with the image you like and add this banner to group "468x50". You can also make a new group, like "kuku_banner", and then in footer.php change this
if ($banner = tep_banner_exists('dynamic', '468x50')) {
to thisif ($banner = tep_banner_exists('dynamic', 'kuku_banner')) {









