Page 1 of 1

ADD EXTERNAL LINK TO NAVIGATION BAR

Posted: Tue Aug 28, 2018 11:16 pm
by LuisaX
Hi Everyone!
I'd like to add an external link to the navigation bar.
I tried to edit header.tpl and i add this code but it doesn't work :

<a href="<?php echo $category['href']; ?>" class="see-all"><?php echo $text_all; ?> <?php echo $category['name']; ?></a> </div>
</li>
<?php } else { ?>
<li><a href="<?php echo $category['href']; ?>"><?php echo $category['name']; ?></a></li>
<?php } ?>
<?php } ?>
<ul class="menu">
<li>
<a href="https://MY SITE "> HOUSEWARES AND MORE</a>
</li>
</ul>
</ul>
</div>
Any suggestions?
Thanks a lot for the answer!


Re: ADD EXTERNAL LINK TO NAVIGATION BAR

Posted: Tue Aug 28, 2018 11:19 pm
by LuisaX
I forgot to mention my open cart version 2.3.0.2
Thanks


Re: ADD EXTERNAL LINK TO NAVIGATION BAR

Posted: Tue Aug 28, 2018 11:54 pm
by xxvirusxx
You have refreshed ocmod?
One on left, one on right. You choose.

You can write code like this:

Code: Select all

<li><a href="https://you_site" target="_blank">HOUSEWARES AND MORE</a></li>
or

Code: Select all

<li><a href="https://you_site" target="_blank" title="Best housewares from world... ">HOUSEWARES AND MORE</a></li>

Re: ADD EXTERNAL LINK TO NAVIGATION BAR

Posted: Wed Aug 29, 2018 12:59 am
by straightlight
Or like this:

Code: Select all

<li><a href="https://you_site" target="_blank" alt="Best housewares from world …" title="Best housewares from world...">HOUSEWARES AND MORE</a></li>

Re: ADD EXTERNAL LINK TO NAVIGATION BAR

Posted: Wed Aug 29, 2018 5:31 pm
by LuisaX
Yes! I forgot to refresh :-)
Thanks!