start page & content page have a different layout.

  • tstaples
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
13 years 1 month ago #6340 by tstaples
So in developing my site, i'm noticing that the start page that the template lands on has a slightly different margining effect to it than any other content page.

As you can see from the attached files, the cross bars under the logo are in a different location on the two pages.

I've gone through the css files of the template to try to find where the content version of the margins are defined but cannot find it.

help?
Attachments:

Please Log in to join the conversation.

  • milos
    Support Staff
  • Moderator
  • Moderator
More
13 years 1 month ago #6362 by milos
Please install template using HotStart. That will save hours (days) of work.

Please Log in to join the conversation.

  • tstaples
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
13 years 1 month ago #6366 by tstaples
that's actually what I did... And it still is doing the same thing. I have no idea why it would shift like that on the start page but not any other page. Very odd to me. I'm looking through the code in the templates folder but i just cant seem to find where the setting is.

if you go to hotbodybattles.com you'll see what i mean. The landing page is one way, and then if you click on my FAQ menu link... the positions of everything changes.

Please Log in to join the conversation.

More
13 years 1 month ago #6378 by ivan.milic
The height property of css entity:

#logo {
height: 96px;
width: 159px;
}

changes to 74px when you go to FAQ page.
If you have no idea why this happens you can just add override in index.php of template just before </head> in style block.

Please Log in to join the conversation.

  • tstaples
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
13 years 1 month ago #6381 by tstaples
I loaded the stock template directory into my folder and renamed mine.. and from what I can tell.. this template was implemented so that the content pages would have a different logo (logo_inner.png) and therefore everything adjusts if it's content as opposed to the front page.

So the top bar is subsequently a different height. Looks like my over-rides are only working so much. Something in either layout.css or template_css.css is throwing things off when switching from the content pages to the frontpage. I want them the same.

I"m going to continue to hack it but if someone that wrote this template could help me out that would be very much appreciated.

Please Log in to join the conversation.

  • tstaples
    Inactive member
  • Topic Author
  • New Member
  • New Member
More
13 years 1 month ago #6382 by tstaples
found the code that's doing it... it's in template_css.php


#logo {
height:<?php if (!$ishome) {echo "74px";} else echo "96px" ?>;
width:<?php if (!$ishome) {echo "141px";} else echo "159px" ?>;
}

#topmenu {
height:<?php if (!$ishome) {echo "77px";} else echo "99px" ?>;
}

#topmenu_pad {
padding:<?php if (!$ishome) {echo "22px";} else echo "32px" ?> 0px 0px 4px;
}

Please Log in to join the conversation.

Time to create page: 0.375 seconds
Powered by Kunena Forum