You are here:  » wrapping a div around most content

Support Forum



wrapping a div around most content

Submitted by stevewales20 on Thu, 2011-04-28 18:24 in

Hi,

As the title says, i know i could place this in the header, but the way i've designed it, it means the content is at the top and the navigation/search is lower in the html. Resulting hopefully in better seo.

The only problem i'm currently having is integrating this nicely in the PT setup. Currently the only way i can do it, is on each individual page, wrap the includes inside this div:

print "<div id=\"content-container\">";
    require("html/sidenav.php");
  print "<\div>";
  

Is there an easier way to port this throughout the setup?

Cheers
Steve

Submitted by support on Thu, 2011-04-28 18:46

Hi Steve,

If the class ID "content-container" is defined such that it doesn't matter where in the HTML output it appears, it should work fine if placed either into html/footer.php (before the closing </body> tag) or alternatively into html/user_footer_before.php which the default footer page checks for and includes before closing out the HTML...

Cheers,
David.
--
PriceTapestry.com

Submitted by stevewales20 on Fri, 2011-04-29 10:34

hmm thanks for the suggestion, i have placed the search/topnav in that section.

It's not the ideal solution, but for now it'll do thanks :)

Steve