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?

Newbie

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.

The most generated errors being found on Opencart forum originates from contributed programming.

Regards,
Straightlight


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

Ernie's OpenCart v.1.5.6.5 LIGHT + V-Pro + OpenShop Admin v.1.75 Test Sites
http://www.bigmax.ch - http://www.opencart.li/shop/ - http://www.velomech.ch/cart/
Image


User avatar
Guru Member

Posts

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

Users browsing this forum: Penneeo and 37 guests