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.

The most generated errors being found on Opencart forum originates from contributed programming. The increased post counters are caused by redundancies of the same solutions that were already provided prior.

F. Rules:

- viewtopic.php?f=176&t=200480
- viewtopic.php?f=176&t=200804


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

For Sale: Top URL's, including an OpenCart V-Pro Shop!
A wide range of matching Designs can be seen here: http://www.opencart.li
For Information on URL's offered, please contact me at: jti@jacob.ch
Hundreds of Mods in 380+ Repositories for OC v.1.5.x - v.2.3.x
to be found on my Github Site: https://github.com/IP-CAM
Image


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 18 guests