Post by razmon » Mon Feb 19, 2018 2:54 am

Hi
Great application.
I'm wanting to place a logo throughout thestore front instead of just text as the store name. How can I do this please?

New member

Posts

Joined
Fri Feb 09, 2018 5:03 am

Post by straightlight » Mon Feb 19, 2018 4:24 am

- catalog/view/theme/<your_theme>/template/common/header.tpl file.

Dedication and passion goes to those who are able to push and merge a project.

Regards,
Straightlight
Programmer / Opencart Tester


Legendary Member

Posts

Joined
Mon Nov 14, 2011 11:38 pm
Location - Canada, ON

Post by IP_CAM » Mon Feb 19, 2018 12:27 pm

Well, usually, there is always a logo in the header section visible, but it's only visible, if it exists
in the ShopROOT/image/data/.... Section, and if it's named logo.png ( by OC Default at least! )

Code: Select all

<div id="logo">
<?php if ($logo) { ?>
<a href="<?php echo $home; ?>"><img src="<?php echo $logo; ?>" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" class="img-responsive" /></a>
<?php } else { ?>
<h1><a href="<?php echo $home; ?>"><?php echo $name; ?></a></h1>
<?php } ?>
</div> 
But to make sure, this Code above could simply be changed to a DIRECT HREF- image link:

Code: Select all

<div id="logo">
<?php if ($logo) { ?>
<a href="<?php echo $home; ?>"><img src="http://yoursite.com/yourshop/image/data/yourimage.png" title="<?php echo $name; ?>" alt="<?php echo $name; ?>" class="img-responsive" /></a>
<?php } else { ?>
<h1><a href="<?php echo $home; ?>"><?php echo $name; ?></a></h1>
<?php } ?>
</div> 
Good Luck! ;)
Ernie

My Github OC Site: https://github.com/IP-CAM
5'200 + FREE OC Extensions, on the World's largest private Github OC Repository Archive Site.


User avatar
Legendary Member

Posts

Joined
Tue Mar 04, 2014 1:37 am
Location - Switzerland
Who is online

Users browsing this forum: No registered users and 196 guests