Post by DrunkMunki » Mon Jul 25, 2011 9:17 am

i've been searching the forums and cannot find the answer;

how can i make the banner module load in the header.tpl file so i can have the banner load on every page?
currently it only allows banners on the left,right, bottom and within the content box.

I went to System -> Design -> Layouts and created a "Header" Layout, but how do you use it?

O0

Newbie

Posts

Joined
Sun Jul 17, 2011 6:02 pm

Post by DrunkMunki » Wed Jul 27, 2011 6:25 pm

no one? i thought this would be a big deal as it seems limited in locations for banners.

Newbie

Posts

Joined
Sun Jul 17, 2011 6:02 pm

Post by uksitebuilder » Wed Jul 27, 2011 6:28 pm

header is separate to the main page section

the main page section only can be affected by the layouts you create.

To place a banner in the header section, you will need to manually alter the template to put it there.

ImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by DrunkMunki » Thu Jul 28, 2011 4:36 pm

manually edit what? i tried looking around in the source files and there is no code to indicate a banner position, its injected during loading. would be nice to simply have

Code: Select all

<?php echo $banner; ?>
instead of having to mess with controller files?

or perhaps create a custom "layout" and user that layout code to load a banner position?

Newbie

Posts

Joined
Sun Jul 17, 2011 6:02 pm

Post by uksitebuilder » Thu Jul 28, 2011 5:07 pm

manually edit catalog/view/theme/default/template/common/header.tpl

there is no easy way to get the banners from the banners module in to the header other than manually coding the banner in the header template

ImageImageImageImage

For Friendly Professional Support - Click Here


User avatar
Guru Member

Posts

Joined
Thu Jun 09, 2011 11:37 pm
Location - United Kindgom

Post by Maansy » Thu Jul 28, 2011 7:16 pm

Manually? Yes will work also, but why not create a new position for banners and call it "header"
Contact Fido-X and I am sure he can code that for you.
Good luck ;)

ALL Templates :: 1.5.1+ Templates :: 50%-75% PRICE DROP ONLY at OpencartStuff.com


User avatar
Active Member

Posts

Joined
Thu Jun 24, 2010 6:04 am

Who is online

Users browsing this forum: No registered users and 29 guests