righty
some basic customisation.
to get rid of the "powered by open cart" there are two ways to do this.
The first way removes both the "powered by" and the "your store copyright 2011"
to do that, go into catalog/view/theme/your-template-name-here/template/common
and open footer.tpl
on line 37 find this code and remove it
<!--
OpenCart is open source software and you are free to remove the powered by OpenCart if you want, but its generally accepted practise to make a small donatation.
Please donate via PayPal to donate@opencart.com
//-->
<div id="powered"><?php echo $powered; ?></div>
<!--
OpenCart is open source software and you are free to remove the powered by OpenCart if you want, but its generally accepted practise to make a small donatation.
Please donate via PayPal to donate@opencart.com
//-->
</div>
the $powered function also contains the copyright bit aswell, to keep the copyright and remove only the "powered by" then you want to leave the footer.tpl as it is, dont remove the piece of code mentioned above, instead go into
catalog/language/english/common
and open footer.php
on line 18 you should see this code
$_['text_powered'] = 'Powered By <a href="http://www.opencart.com">OpenCart</a><br /> %s © %s';
change that to this
$_['text_powered'] = '%s © %s';
you can then use the powered div to control where the copyright text sits
in catalog/view/theme/your-template-name-herer/stylesheet/stylesheet.css
on around line 1568 you should see this
#powered {
clear: both;
margin-top: 5px;
text-align: right;
}
change the text-align: right;
to
text-align: center;
or
text-align: left;
depending on where you want the text to sit. If you want to ad a slight gap above that text or below the text then you would increase the px size in margin-top to what ever height you want the gap to be, and to add a gap at the bottom you would add margin-bottom: 5px; to the stylesheet like this
#powered {
clear: both;
margin-top: 5px;
margin-bottom: 5px;
text-align: right;
}
obviously you would increase the px size to whatever you want the gap to be.
to change the width of the template, at around line 66 in your stylesheet, you should see this code
#container {
margin-left: auto;
margin-right: auto;
text-align: left;
width: 980px;
}
just change 980px to whatever you want the size of the center container to be.
to change the background colour or add a background image, in your stylesheet at around line 6 you should see this code
body {
color: #000000;
font-family: Arial,Helvetica,sans-serif;
margin: 0;
padding: 0;
}
to add a background colour to that you would add an extra line in like this
body {
background: #cccccc;
color: #000000;
font-family: Arial,Helvetica,sans-serif;
margin: 0;
padding: 0;
}
#cccccc is a light grey colour, you would change that to whatever colour code you want.
to add a background image to that, you would do this
body {
background: url("../image/background1.png") repeat scroll 0 0 transparent;
color: #000000;
font-family: Arial,Helvetica,sans-serif;
margin: 0;
padding: 0;
}
the image that is being called is a image file named background1.png
you would change that to echo your own image file name
the image file will need to be uploaded to
catalog/view/theme/your-template-name-here/image/
to prevent the image from being repeated, you would change it to this
body {
background: url("../image/background1.png") no-repeat scroll 0 0 transparent;
color: #000000;
font-family: Arial,Helvetica,sans-serif;
margin: 0;
padding: 0;
}
or you could repeat the image horizontally only, then instead of no repeat, you would use repeat-x
or just vertically then it would be repeat-y
if you want the image to sit at the top of the page and centered then you would do this
body {
background: url("../image/background1.png") no-repeat scroll center top transparent;
color: #000000;
font-family: Arial,Helvetica,sans-serif;
margin: 0;
padding: 0;
}
just change center top to whatever you want, left bottom for example to make the image sit where you want it to.
Bear in mind that center is always written the american way, if you use centre instead of center, it'll do nothing at all, same with colour, it needs to be written as color (american spelling)
to change the colour of the header menu bar, in your stylesheet at around line 316 you should see this code here
#menu {
background: none repeat scroll 0 0 #CCCCCC;
border-bottom: 1px solid #000000;
border-radius: 5px 5px 5px 5px;
box-shadow: 0 2px 2px #DDDDDD;
height: 37px;
margin-bottom: 15px;
padding: 0 5px;
}
change #cccccc to what ever colour you want (the original colour isnt #cccccc I've changed that at some point)
you can change the box shadow colour aswell and you can change the round edges to the box by changing
border-radius: 5px 5px 5px 5px;
and alter the 5px to suit.
the four digits work in a clockwise motion, ie, the first number controls the top left corner, second digit top right corner and so on in a clock wise motion.
to add a background image to the menu bar, you would do exactly the same as mentioned in the body tag above.
to alter the featured box, in your stylesheet at around line 611 you should see this code
.box .box-heading {
background: url("../image/background.png") repeat-x scroll 0 0 transparent;
border: 1px solid #DBDEE1;
border-radius: 11px 7px 0 0;
color: #333333;
font-family: Arial,Helvetica,sans-serif;
font-size: 14px;
font-weight: bold;
line-height: 14px;
padding: 8px 10px 7px;
}
again, same rules apply with the background colour and image and the border radius.
the background image being used above is just a small square with a gradient, this is repeated vertically to save loading a full length image.
to change the text colour, you would alter this part from the above code
color: #333333;
color always controls the text colour only within the div or class entry in your stylesheet.
padding will move the contents inside the div or class where as margin would move the whole div or class, these can de written in two ways, either with all four sides in one line (like above)
padding: 0px 0px 0px 0px;
^^ again, clockwise motion, the first 0px controls the distance from the top, second 0px controls the distance from the right, third is bottom, fourth is left. the same applies to margin
margin: 0px 0px 0px 0px;
you can write them out one side at a time like this
padding-top: 0px;
or
padding-left: 0px;
etc,
same with margins,
margin-top:0px;
etc
obviously you probably wont have the distance set to 0px Im just using that as an example.
I need a tea break, I'll continue with this in a mo'
