Tags/topics: 
3
Answers
Vote up!
0
Vote down!

Home page div structure different!

I'm baffled - client is getting pissy because I can't fix this:

All other content has this structure:

      <div id="zone-content" class="zone zone-content clearfix container-24">
        <div id="breadcrumb" class="grid-24">
          <h2 class="element-invisible">You are here</h2>
          <div class="breadcrumb"> snip </div>
        <aside > snip  </aside>
        <div class="grid-17 region region-content" id="region-content">
          <div class="region-inner region-content-inner"> <a id="main-content"></a>
            <div class="block block-system block-main block-system-main odd block-without-title" id="block-system-main">
              <div class="block-inner clearfix">
                <div class="content clearfix"> XX  ( here my node starts to display)
                  <article class="node node-page node-published node-not-promoted node-not-sticky author-admin odd clearfix" id="node-page-2">
                    <div class="content clearfix">
                      <header>
                        <h2 class="field field-name-title-field field-type-text field-label-hidden"> BLAH BLAH BLAH </h2>
                      </header>

BUT - when I assign a node to be the home page it's getting wrapped differently and messing up my beautiful plans.

   <div id="zone-content" class="zone zone-content clearfix container-24">
        <aside> snip </aside>
        XX ( here my node starts to display)
        <article class="node node-page node-published node-not-promoted node-not-sticky author-admin odd clearfix" id="node-page-38">
          <div class="content clearfix">
            <header>
              <h2 class="field field-name-title-field field-type-text field-label-hidden"> Blah blah blah</h2>

There are a lot of divs missing now and I can't find why... delta and context are installed but not being used - there's no front.tpl.php in sight

Any ideas where I can find the trigger for the different treatment of the front page? It a subtheme of Commerce Kickstart.

Many thanks

Ian

Asked by: KitchenSync
on May 13, 2013

3 Answers

Vote up!
0
Vote down!

Because it's a subtheme take a look in the main theme for node.tpl.html and front-page.tpl.html (or something similar). Or better, I think you use the view "frontpage" you can take a look in the views page and see if it's used, or look here admin/config/system/site-information and see what it's used for frontpage.
I hope it helps

Regards.

Answer by: Banzai
Posted: May 13, 2013
Vote up!
0
Vote down!

thank you so much Banzai.

In site-information I just have node/38 which is the node I want to use.

A bit of digging... and in omega: region--content.tpl.php is NOT applied on the front page...

Yet to find why!

Answer by: KitchenSync
Posted: May 13, 2013
Vote up!
0
Vote down!

I'll pop that up as a separate question.... I can't find it.

Answer by: KitchenSync
Posted: May 13, 2013