Having problems replicating a header block on multiple pages

Permalink
Hi, I have an image and a navigation bar on my homepage athttp://www.igreatlakes.com/index.php... I am trying to replicate the same image and navbar orientation on other pages that I'm creating for this site. For example: http://www.igreatlakes.com/advertising/...

But no matter what I do, I can't get the image to appear first in the header like in the homepage. Please advise on what I'm doing wrong.

I am pasting in both the image and navbar from the scrapbook.

 
senshidigital replied on at Permalink Reply
senshidigital
I can see a missing div the between the two pages.

The home page has:

<div id="headerNav">
         <a href="http://www.igreatlakes.com"><img border="0" class="ccm-image-block" alt="iGreatLakes" src="/files/1612/7075/1334/igreatlakes.png" width="400" height="77" /></a>   <div id="blockStyle4" class=" ccm-block-styles" >
<ul class="nav-header"><li class="nav-selected first"><a class="nav-selected" href="/">Home</a></li><li class=" "><a href="/about/">About</a></li><li class=" "><a href="/search/">Search</a></li><li class=" "><a href="/advertising/">Advertising</a></li><li class=" "><a href="/product-reviews/">Product Reviews</a></li></ul><div class="ccm-spacer">&nbsp;</div></div>      </div>


while the advertising page has:

<div id="headerNav">
         <a href="http://www.igreatlakes.com"><img border="0" class="ccm-image-block" alt="iGreatLakes" src="/files/1612/7075/1334/igreatlakes.png" width="400" height="77" /></a><ul class="nav-header"><li class=" first"><a href="/">Home</a></li><li class=" "><a href="/about/">About</a></li><li class=" "><a href="/search/">Search</a></li><li class="nav-selected "><a class="nav-selected" href="/advertising/">Advertising</a></li><li class=" "><a href="/product-reviews/">Product Reviews</a></li></ul><div class="ccm-spacer">&nbsp;</div>      </div>


You will see a div is missing from the end. That will probably do it. ;-)

ps. ignore the php tags around the above code... these posts auto put that around it
wacnstac replied on at Permalink Reply
I noticed that last night and that would be easy to fix if I was just editing simple HTML, but I have no idea why Concrete left the div off of one page and not the other, nor how to make them the same.
senshidigital replied on at Permalink Reply
senshidigital
Are you not using a custom template?

All you would need to do is go into that single page or themed page and add the div.
wacnstac replied on at Permalink Reply
I am using an add-on theme for the site, but I didn't have to modify anything for the home page, so I don't understand why I would have to for any other pages.
senshidigital replied on at Permalink Reply
senshidigital
Did you use the same default template for each page or two different templates?
senshidigital replied on at Permalink Reply
senshidigital
In fact you said you copied one into the other? Sometimes when you copy into a scrapbook or content block it adds a div or p tag before and after. Open the block in concrete and view as html... you may see the extra one there.
wacnstac replied on at Permalink Reply
I used two different page types within the add-on theme to make these two different pages.
wacnstac replied on at Permalink Reply
I looked at both full.php and left_sidebar.php in the theme that was used to create these pages and both include the header block using the same exact code:

<?php 
defined('C5_EXECUTE') or die(_("Access Denied."));
$this->inc('elements/header.php'); ?>
senshidigital replied on at Permalink Reply
senshidigital
The div is probably missing from the page type used for the advert page.

The template for the homepage that you should be looking at is always default.php. As for the other template this should be either in the theme folder or single pages folder.

If you PM'd me a temporary FTP access I can take a look.
wacnstac replied on at Permalink Reply
The advertising page is not missing and </div>. Rather it doesn't have the whole <div id="blockStyle4" class=" ccm-block-styles" > div that the home page has. That must be the problem. I'm not sure where the home page picks that div up from.
senshidigital replied on at Permalink Reply
senshidigital
if its missing then its a problem with the theme but can be added into the html.

As I said the only way I can be sure is if you private message me a login to access the site through FTP to check the files. This will make things a lot quicker.

EIther that contact the person who created the theme.
wacnstac replied on at Permalink Reply
Well I would send you a PM if I could figure out how on this system.
senshidigital replied on at Permalink Reply
senshidigital
Click on my avatar and on the next page 'email member' this will send me a PM.
wacnstac replied on at Permalink Reply
I have sent you a PM.
da4kinov replied on at Permalink Reply
How did you manage with this?
senshidigital replied on at Permalink Reply
senshidigital
Nothing came of it If I remember.
da4kinov replied on at Permalink Reply
If your block is an image I might want use this
http://www.concrete5.org/community/forums/usage/logo-image-is-chang...