Zen Cart Logo
Forums / Templates, Stylesheets, Page Layout / Help! Quite stuck now, Header Position1

Help! Quite stuck now, Header Position1

Views: 732

Results 1 to 6 of 6
5 Dec 2010, 1:07 PM
#1
electricwizard avatar

electricwizard

New Zenner

Join Date:
Nov 2010
Posts:
10
Plugin Contributions:
0

Help! Quite stuck now, Header Position1

Hi to the ZC community,

Hope one of you clever people can help me.

I am having problems with my Header Position_1, as far as i am aware this is supposed to be above the Navi bar, but it puts it in the main area on my home page.
I have searched high and low for a solution, re-uploaded my original tpl_header but no joy. I must be able to move some code around to make it appear where it should.
I must have done something wrong down the line, but now stuck as stuck can be!

I appreciate any pointers

Cheers Guys

Neale

https://www.electricwizard.co.uk

5 Dec 2010, 1:50 PM
#2
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Help! Quite stuck now, Header Position1

First, is this banner created in Admin>Tools>Banner Manager?

Second, in Admin>Configuration>Layout Settings>Banner Display Groups - Header Position 1, have you entered the same name there as your banner is named in the Banner Manager?

If all the above is all correct, then you will need to edit includes/templates/black_pure_free/common/tpl_main_page.php to move this block of code
```

<?php if (SHOW_BANNERS_GROUP_SET1 != '' && $banner = zen_banner_exists('dynamic', SHOW_BANNERS_GROUP_SET1)) { if ($banner->RecordCount() > 0) { ?> <div id="bannerOne" class="banners"><?php echo zen_display_banner('static', $banner); ?></div> <?php } } ?> ```

up the page to sit right under this line:

<body id="<?php echo $body_id . 'Body'; ?>" class="smartBG<?php echo smart_backgrounds();?>"<?php if($zv_onload !='') echo ' onload="'.$zv_onload.'"'; ?>>

Hope this helps.

5 Dec 2010, 6:36 PM
#3
electricwizard avatar

electricwizard

New Zenner

Join Date:
Nov 2010
Posts:
10
Plugin Contributions:
0

Re: Help! Quite stuck now, Header Position1

Hi, thanks for the reply

I will try and move the code as all other steps are completed.

Post back my results

Kind Regards

Neale

5 Dec 2010, 7:24 PM
#4
electricwizard avatar

electricwizard

New Zenner

Join Date:
Nov 2010
Posts:
10
Plugin Contributions:
0

Re: Help! Quite stuck now, Header Position1

Hi,
had a look in includes/templates/black_pure_free/common/tpl_main_page.php

i could not find the code suggested, set4 and set6 but not set1

Neale

6 Dec 2010, 5:14 AM
#5
get_em_fast avatar

get_em_fast

Totally Zenned

Join Date:
Dec 2006
Location:
Seligman, MO U.S.A.
Posts:
2,072
Plugin Contributions:
1

Re: Help! Quite stuck now, Header Position1

Okay Neile, look in includes/templates/black_pure_free/common/tpl_main_page.php/tpl_header.php to see if the first block of code is in there. If it is, then remove it from there and put it where it should be, and it should show at the top of the page, then.

I really don't understand why they would move that there, as that spot is what Header Position 3 is for.............

9 Dec 2011, 4:24 PM
#6
redwater avatar

redwater

New Zenner

Join Date:
Nov 2011
Posts:
7
Plugin Contributions:
0

Re: Help! Quite stuck now, Header Position1

Hi

I just posted a response to a similar problem here.

Please read carefully, as it states, I am no expert and have found this solution by myself as a quick search of the forums only seemed to offer similar questions.

Cheers

Matt