Hi All,
I'm new to Opencart but loving the flexibility so far. Can anyone offer advice regarding how to add links from the search bar. I've removed the language and curreny box and want to add the following links:
Home
Blog
News
How to Order
Contact
Home and Contact are obviously existing pages, so I have two questions really:
1) How do I link to existing pages
2) How do I link to pages that I create (i'm assuming that I have to create these as information pages?)?
Thanks a million.
Dave
If you want to use "information"(not external link) got find \catalog\template\default\layout.tpl
then move "information" script like this format:
then move "information" script like this format:
Code: Select all
<div id="column">
<?php if (isset($information)) { ?>
<?php echo $information; ?>
<?php } ?>
<?php if (isset($cart)) { ?>
<?php echo $cart; ?>
<?php } ?>
<?php if (isset($category)) { ?>
<?php echo $category; ?>
<?php } ?>
<?php if (isset($review)) { ?>
<?php echo $review; ?>
<?php } ?>
Hi Dave, welcome to OpenCart!
Lets take a step back and make sure you are doing it the correct way.....
To properly remove the currency and language boxes, you can goto the Admin section under "Extension->Modules" and disable the currency and language extensions. I'm not sure if that is what you did, but just want to make sure you're not manually editing those out of the tpl files (just adds confusion later)
As far as changing the links in the top navigation bar, Do you mean the top "Home | My Account | Log In | Cart | Checkout" bar? or do you want to add new links to the grayish search bar below it, to the left of the search box? (see attachment)
To change the top header you'd edit: "catalog/template/default/module/header.tpl"
to change the search bar you'd edit: "catalog/template/default/module/search.tpl"
Lets take a step back and make sure you are doing it the correct way.....
To properly remove the currency and language boxes, you can goto the Admin section under "Extension->Modules" and disable the currency and language extensions. I'm not sure if that is what you did, but just want to make sure you're not manually editing those out of the tpl files (just adds confusion later)
As far as changing the links in the top navigation bar, Do you mean the top "Home | My Account | Log In | Cart | Checkout" bar? or do you want to add new links to the grayish search bar below it, to the left of the search box? (see attachment)
To change the top header you'd edit: "catalog/template/default/module/header.tpl"
to change the search bar you'd edit: "catalog/template/default/module/search.tpl"
Who is online
Users browsing this forum: No registered users and 2 guests