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!
Lù
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!
Lù
You have refreshed ocmod?
One on left, one on right. You choose.
You can write code like this:
or
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>
Code: Select all
<li><a href="https://you_site" target="_blank" title="Best housewares from world... ">HOUSEWARES AND MORE</a></li>
Upgrade Service | OC 2.3.0.2 PHP 8 | My Custom OC 3.0.3.8 | Buy me a beer
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>
Dedication and passion goes to those who are able to push and merge a project.
Regards,
Straightlight
Programmer / Opencart Tester
Who is online
Users browsing this forum: No registered users and 26 guests