Page 1 of 1

Adjusting header bar

Posted: Fri Jan 05, 2018 3:34 am
by mikegdl
On top of the opencart website, there is a grey bar with phone number/account/wishlist/cart/checkout
Is it possible to add link/button in there?

Currently using Version 1.5.6

Re: Adjusting header bar

Posted: Fri Jan 05, 2018 6:51 am
by straightlight
Hi,

as your first post, please read the most recent forum rules. So far, no URL / highlighted screenshot posted with your request.

Re: Adjusting header bar

Posted: Fri Jan 05, 2018 11:21 am
by IP_CAM
Well, it heavy depends on the Theme used, but basically, it's the
.../whatevertheme/template/common/header.tpl
file, where your Link Code has to be added. Below some samples, where such has to be done:
---
Case 1:

Code: Select all

<div class="links"><a href="<?php echo $home; ?>"><?php echo $text_home; ?></a><a href="<?php echo $wishlist; ?>" id="wishlist-total"><?php echo $text_wishlist; ?></a><a href="<?php echo $shopping_cart; ?>"><?php echo $text_shopping_cart; ?></a><a href="<?php echo $checkout; ?>"><?php echo $text_checkout; ?></a></div>
Add, a Link Line like shown below, where you like to make it visible, inside of such a Code Section:

Code: Select all

<a href="http://whatever/yourpage.html">Click here, to see Whatever</a>
---
Case 2:

Code: Select all

<li><a href="<?php echo $download; ?>"><?php echo $text_download; ?></a></li>
<li><a href="<?php echo $logout; ?>"><?php echo $text_logout; ?></a></li>
Add, a Link Line like shown below, where you like to make it visible, inside of such a Code Section:

Code: Select all

<li><a href="http://whatever/yourpage.html">See Whatever</a></li>
---
Case 3:

Code: Select all

<li><a href="<?php echo $wishlist; ?>" id="wishlist-total" title="<?php echo $text_wishlist; ?>"><i class="fa fa-heart"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $text_wishlist; ?></span></a></li>
<li><a href="<?php echo $shopping_cart; ?>" title="<?php echo $text_shopping_cart; ?>"><i class="fa fa-shopping-cart"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $text_shopping_cart; ?></span></a></li>
<li><a href="<?php echo $checkout; ?>" title="<?php echo $text_checkout; ?>"><i class="fa fa-share"></i> <span class="hidden-xs hidden-sm hidden-md"><?php echo $text_checkout; ?></span></a></li>
Add, a Link Line like shown below, where you like to make it visible, inside of such a Code Section:

Code: Select all

<li><a href="http://whatever/yourpage.html" id="whatever" title="Click here, to see Whatever"><i class="fa fa-link"></i> <span class="hidden-xs hidden-sm hidden-md">See Whatever</span></a></li>
Good Luck! ;)
Ernie

Re: Adjusting header bar

Posted: Sat Jan 06, 2018 1:46 am
by mikegdl
Thank you so much for through explanation Ernie! The name of the tpl file was one I was looking for!!

I'll be sure to include link and try to clarify my question next time.