WordPress.org

Ready to get started?Download WordPress

Forums

IE7 - Header w/ php include error (2 posts)

  1. mackeydesigns
    Member
    Posted 6 years ago #

    So, my blog runs multiple headers pending which section is pulled.

    So I made a few different versions of my header.php, which I renamed according to the fit the page section.

    After reviewing some posts on the support forum, I was able to figure out how to get my custom header pages to load per the page that was loaded.

    That was by sticking this code into the header of the page.php file

    </*
    Template Name: about
    */
    ?>
    <?php include(TEMPLATEPATH . '/header_about.php'); ?>

    and removing
    <?php get_header(); ?>

    This works perfect in FireFox, but the spacing on my pages goes to hell in IE7.

    Using IE7, here is an example of working page
    http://www.mackeydesigns.com/blog/ that uses the
    <?php get_header(); ?> in the page.php file.

    Now if you navigate to, say the portfolio tab in IE7
    http://www.mackeydesigns.com/blog/portfolio/
    the spacing gets really whacked out, and I suspect it's the code:

    </*
    Template Name: about
    */
    ?>
    <?php include(TEMPLATEPATH . '/header_portfolio.php'); ?>

    Any ideas on how to fix this?

  2. mackeydesigns
    Member
    Posted 6 years ago #

    bump.

Topic Closed

This topic has been closed to new replies.

About this Topic