Comment posted on Adding Positions to OpenCart 1.5.1.1 Theme by Jamie Taylor
You should be able to do that in your theme’s header.tpl and home.tpl files in “catalog/view/theme/*your-theme*/template/common/”
in header.tpl look for:
the php bit about the logo.
and play with it’s positioning. Sorry I can’t be of more help, still new myself.
Jamie Taylor also commented
- Aaaah, thanks for sharing. That’s really helpful!
Recent comments by Jamie Taylor
- autoFacebook Light Facebook App!
Please see updated tutorial at: http://htmyell.com/autofacebook-2-1 - autoFacebook Light Facebook App!
Please see updated tutorial at: http://htmyell.com/autofacebook-2-1/ - autoFacebook 2.0
Unfortunately facebook changes the development process more often than not. Please try autofacebook lite if you cant get 2.0 to work: http://htmyell.com/autofacebook-light/ - autoFacebook Light Facebook App!
Files sent. - autoFacebook Light Facebook App!
email with your page name, url, or email and i can retrieve it for you. You could also uninstall the app through facebook and reinstall it.
powered by SEO Super Comments
Hi! First I want to say you thanks. I found something like that about 8 hours.
I have a question!
Whit some modification I succeed to make this , work for OpenCart 1.5.0
All works fine but if I want to put in header.tpl I see this ERROR:
Notice: Undefined variable: content_middle in C:\wamp\www\MyShop\upload\catalog\view\theme\web7hztemplate\template\common\header.tpl on line 51
What I want to do is to have 2 div display inline one will be logo and one will be slider .
________________________________________________
| |
| header |
|________________________________________________|
| | |
| | |
| Logo | Slider |
| | |
|______________________|_________________________|
| |
| currency cart language |
|________________________________________________|
Because I can’t found modify button I what do ask you how can I put in content_middle the slideshow module. Actually I can put only the information module.
Excuse my bad English!
P.S. Also the first paragraph shall be Hi! First I want to say you thanks.I looked for something like this for about 8 hours and than I found you.
You should be able to do that in your theme’s header.tpl and home.tpl files in “catalog/view/theme/*your-theme*/template/common/”
in header.tpl look for:
the php bit about the logo.
and play with it’s positioning. Sorry I can’t be of more help, still new myself.
Hi Jamie,
Being new to Opencart I’ve been trying to find a way to insert a new module position and your article looks the goods but will this work in OC 1.4.9.1 ?
What I’m trying to achieve is a module position in the header for a login module to appear on all pages.
Cheers
Thank you! I like it really helped!
hi there, very nice tutorial.
following it, I have made it to make and put new position to a model.
thank you.
now, I can position the module to show before or after the header.
but, what I really wanted to achieve is to position the module i-n-s-i-d-e the header.
I have tried to echo the module in header.tpl file but Warning: Undefined variable… shows up.
is there a solution for this?
yes, I am using Opencart v.1.5.3.1 with custom theme.
That’s really helped! thanks!
If you want to put the new module position inside the header, then you need to modify the controllor for the header. You need to let it know that your new position is a child.
open catalog/controller/common/header.php
find:
$this->children = array(
‘module/language’,
‘module/currency’,
‘module/cart’
);
change to:
$this->children = array(
‘common/content_middle’,
‘module/language’,
‘module/currency’,
‘module/cart’
);
You can now put this inside your header.tpl:
Aaaah, thanks for sharing. That’s really helpful!
Congratulation … this save me …
aspirateur dyson…
nice homepage…