i recently installed OpenCart and managed to modify an extension which added a "Home" Button to the Top Menu Bar. I now could just modify this with several Link titles which i wanted to put in the top menu and just install it as an extension in OpenCart.
But there must be an easier way. The header.tpl code in catalog/view/theme/default/template/common is really long and i couldnt managed to put a simple code inside so it appeared in the right way on the top menu bar. After which line can i add my links?
This is the modification which i use to add Links to the top menu bar.
Code: Select all
<file path="catalog/view/theme/*/template/common/header.tpl">
<operation>
<search ><![CDATA[<ul class="nav navbar-nav">]]></search>
<add position="after"><![CDATA[<li><a href=" MY LINK "> LINK TITLE </a></li>]]></add>
</operation>
</file>