Page 1 of 2
changing logo and Removing Powerd By.
Posted: Wed Dec 22, 2010 6:15 pm
by kingdonk
Im impressed so far with open cart and am looking forward to learning it.
Im making a small store for my mum for a small home business and she would like the powered by opencart removed from the bottom of the page and the order e-mails, ive tried myself but being new to php/html seem to be getting it wrong.
ive searched the forum but carnt find the exact lines to remove.
Also when i upload a new logo which is taller than the standard one the tabs on the main page separate from the main blue bar (i.e a gap between them)
How do i ad a larger logo without affect the standard template?
Thanks for any help or suggestions.
Re: changing logo and Removing Powerd By.
Posted: Wed Dec 22, 2010 7:24 pm
by JAY6390
open
Code: Select all
/catalog/view/theme/default/template/common/footer.tpl
Find
Code: Select all
<!--
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 class="div2"><?php echo $text_powered_by; ?></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
//-->
and remove it and save to remove the powered by text
To change the logo, go to the image tab in system > settings in your admin panel, you will see it there and can click it and change it
Re: changing logo and Removing Powerd By.
Posted: Wed Dec 22, 2010 7:48 pm
by kingdonk
Thanks for that, will make it easier for upgrading to future versions, does that also remove it from the E-mails?
Ive changed the logo via the admin section but its larger than the standard logo that comes with a fresh install and after changing to logo (to a bigger one) its messes with the template, the tabs have a 4/5 mm gap between them and the blue bar below, would moving the image location via code do this?
Re: changing logo and Removing Powerd By.
Posted: Wed Dec 22, 2010 7:50 pm
by JAY6390
No, the email template is in the template/mail/ folder, it should be pretty clear where it is on that as it's one page
Re: changing logo and Removing Powerd By.
Posted: Wed Dec 22, 2010 7:51 pm
by JAY6390
Also, to move the tabs, you will need to edit the css file
Re: changing logo and Removing Powerd By.
Posted: Wed Dec 22, 2010 9:49 pm
by kingdonk
Found it. Thanks.
Re: changing logo and Removing Powerd By.
Posted: Sun Dec 26, 2010 9:59 am
by birdcuckoo
Kingdonk, do you mind sharing how or rather specifically where you change the CSS to move the tabs down?
Re: changing logo and Removing Powerd By.
Posted: Sun Dec 26, 2010 10:52 am
by birdcuckoo
Disregard my question. Thanks.
Re: Removing Powerd By.
Posted: Fri Dec 31, 2010 6:53 am
by Edward_
In editing to remove the 'Powered by', the $text_powered_by seems to contain the Powered by as well as the 'Store name (c) Year'.
When
Code: Select all
<div class="div2"><?php echo $text_powered_by; ?></div>
is removed both Powered by and copyright go away. I'd like to keep the 'Store name (c) Year' as the year changes automatically.
Re: changing logo and Removing Powerd By.
Posted: Fri Dec 31, 2010 7:02 am
by Chones
<?php echo date('Y'); ?> outputs the current year so you can always replace that section with
Code: Select all
<div class="div2">© Your Store 2010 - <?php echo date('Y'); ?></div>
It will output (c) Your Store 2010 - 2011 (well, it will as of 1st Jan) and will update every year automatically.
Re: changing logo and Removing Powerd By.
Posted: Fri Dec 31, 2010 7:19 am
by Edward_
Do you know where $text_powered_by; gets it value though?
I wanted to pass the Storename to the copyright line.
Re: changing logo and Removing Powerd By.
Posted: Fri Dec 31, 2010 11:34 am
by fido-x
Edward_ wrote:Do you know where $text_powered_by; gets it value though?
I wanted to pass the Storename to the copyright line.
catalog/language/english/common/footer.php
Change:
Code: Select all
$_['text_powered_by'] = 'Powered By <a href="http://www.opencart.com">OpenCart</a><br /> %s © %s';
to:
Code: Select all
$_['text_powered_by'] = '%s © %s';
Re: changing logo and Removing Powerd By.
Posted: Sat Jan 01, 2011 2:22 am
by Edward_
Thank you very much!
Re: changing logo and Removing Powerd By.
Posted: Sun Jan 02, 2011 3:29 pm
by kingdonk
Ive changed the catalog/language/english/common/footer.php file, and also the admin footer but when the customer receives an e-mail confirming the order at the bottom it says powered by opencart.
Ive gone into the language file for mail and removed the powered by bit but the e-mails still say opencart. where can i remove this?
Thanks.
Re: changing logo and Removing Powerd By.
Posted: Sun Jan 02, 2011 7:41 pm
by Chones
In your template go to template > mail > order_confirm.tpl (or add that file from the default into your template).
Then near the bottom you'll see
Code: Select all
<?php echo $text_powered_by; ?> <a href="http://www.opencart.com" style="text-decoration: none; color: #374953;">OpenCart</a>
Removing that should work.
Re: changing logo and Removing Powerd By.
Posted: Tue Jan 04, 2011 12:48 am
by kingdonk
Thanks for the help. the sites taking place and am slowly understaning more and how opencart is structured for making my own changes but am still stook with the css file for positioning the tabs/logo.
Ive attached the photo of of what the site looks like with the logo and as you can notice the tabs on the right have a large gap between them and the bar below where as with the standard logo there is no gap.
What change needs to be made to the css file to remove the gap. anything i try just seems to break it further.
Screen shot 2011-01-04 at 03.42.06.png (36.33 KiB) Viewed 9209 times
Re: changing logo and Removing Powerd By.
Posted: Tue Jan 04, 2011 2:50 am
by Chones
In your stylesheet find
Code: Select all
#header .div3 {
float: right;
padding-top: 7px;
height: 38px;
}
Try changing height to something bigger, like 70px;
That might work.
Re: changing logo and Removing Powerd By.
Posted: Tue Jan 04, 2011 11:50 am
by kingdonk
I tried that and also adding a height tag to div 2 but nothing changes. before realising it was the css file that needed editing i thought it just needed to br tag it to break it onto another line. any other suggestions?
Re: changing logo and Removing Powerd By.
Posted: Tue Jan 04, 2011 3:13 pm
by Chones
try adding this to the same style
Re: changing logo and Removing Powerd By.
Posted: Thu Feb 10, 2011 3:01 am
by neosun
fido-x wrote:
Change:
Code: Select all
$_['text_powered_by'] = 'Powered By <a href="http://www.opencart.com">OpenCart</a><br /> %s © %s';
to:
Code: Select all
$_['text_powered_by'] = '%s © %s';
i prefer a change in the footer.tpl so i dont have to mess with files wich can get updated.
change in the footer.tpl
Code: Select all
<div class="div2"><?php echo $text_powered_by; ?></div>
to:
Code: Select all
<div class="div2"><?php echo substr($text_powered_by, 64); ?></div>
This will substring the first part of the text so only your shopname will be left
best regards