• Resolved cameronfrittz

    (@cameronfrittz)


    Ive been working with wordpress for a long while and never ran into any problem like this. Im working on

    It works fine in Chrome, Firefox, and Safari…. but does terrible in IE. The Flash header goes away and the meta data of the post on the side comes back up. PLEASE HELP. Im desperate.

Viewing 15 replies - 16 through 30 (of 31 total)
  • Hi again,

    So the css looks correct now. But the post meta is still appearing (you just can’t see it on other browsers.)

    Your index.php file is not being called. home.php instead needs modifying. To get categories, tags, archives etc to behave properly you may have to modify others too.

    Take a look at the template hierarchy codex page for more information on this, particularly this useful flow chart.

    Regards,
    Andy

    Thread Starter cameronfrittz

    (@cameronfrittz)

    HI andy!

    Thanks again for all the help! I got it fixed to where it dosnt show up but now I cant get it centered in internet explorer!

    Here is my current home.php if it helps any. Its perfect in all other browsers minus internet explorer

    <?php get_header() ?>
    
    	<div id="container">
    		<div id="content" role="main">
    
    <?php
    $first = 0; //set a counter to help add post classes below ?>
    <?php while ( have_posts() ) : the_post() ?>
    <?php $first++;
    if ($first == 1 && !is_paged() ) { //this is for the first post on the homepage only ?>
    	<?php erdt_epigraph() ?>
    	<div id="post-<?php the_ID() ?>" <?php post_class("first-post") ?>>
    		<h2 class="entry-title"><a href="<?php the_permalink() ?>" title="<?php printf( __('Permalink to %s', 'erudite'), the_title_attribute('echo=0') ) ?>" rel="bookmark"><?php the_title() ?></a></h2>
    		<div class="entry-content">
    
    <?php the_content( __( 'Read More <span class="meta-nav">&rarr;</span>', 'erudite' ) );
    
    } else { //subsequent posts on the homepage, all is_paged() posts as well ?>
    	<?php if (!is_paged() ) { $home_pager = "home-post home-post-".$first; } //add home-post classes on front page only ?>
    	<div id="post-<?php the_ID() ?>" <?php post_class($home_pager); ?>>
    		<h3 class="entry-title"><a href="<?php the_permalink() ?>" title="<?php printf( __('Permalink to %s', 'erudite'), the_title_attribute('echo=0') ) ?>" rel="bookmark"><?php the_title() ?></a></h3>
    		<div class="entry-content">
    <?php the_excerpt(); ?>
    			<p class="more-link"><a href="<?php the_permalink() ?>" title="<?php printf(__('Keep reading &lsquo;%s&rsquo;', 'erudite' ), get_the_title() ) ?>"><?php _e('Read More <span class="meta-nav">&rarr;</span>', 'erudite' ) ?></a></p>
    <?php } ?>
    			<hr />
    				<?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'erudite' ) . '&after=</div>') ?>
    
    <?php endwhile; ?>
    
    			<div id="nav-below" class="navigation">
    				<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'erudite' )) ?></div>
    				<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'erudite' )) ?></div>
    			</div>
    
    		</div><!-- #content -->
    	</div><!-- #container -->
    <?php get_sidebar() ?>
    <?php get_footer() ?>

    I’ve just noticed there’s a new bug.. Looks like a </div> or two may be missing.

    Don’t want to sound too teacher-y, but… It’s really important you validate your code, as it can really help spot these sorts of bugs. If you see errors like: “Opening and ending tag mismatch” then something important may be missing.

    Since your pages (e.g. the about page) do centre, I expect adding in these </div>‘s will fix the problem.

    Regards,
    Andy

    Yeah so I think the following two divs aren’t closed:
    <div id="post-<?php the_ID() ?>" <?php post_class("first-post") ?>>
    and:
    <div class="entry-content">

    I guess the corrected code should be something like:

    <?php get_header() ?>
    
    	<div id="container">
    		<div id="content" role="main">
    
    <?php
    $first = 0; //set a counter to help add post classes below ?>
    <?php while ( have_posts() ) : the_post() ?>
    <?php $first++;
    if ($first == 1 && !is_paged() ) { //this is for the first post on the homepage only ?>
    	<?php erdt_epigraph() ?>
    	<div id="post-<?php the_ID() ?>" <?php post_class("first-post") ?>>
    		<h2 class="entry-title"><a href="<?php the_permalink() ?>" title="<?php printf( __('Permalink to %s', 'erudite'), the_title_attribute('echo=0') ) ?>" rel="bookmark"><?php the_title() ?></a></h2>
    		<div class="entry-content">
    
    <?php the_content( __( 'Read More <span class="meta-nav">&rarr;</span>', 'erudite' ) );
    
    } else { //subsequent posts on the homepage, all is_paged() posts as well ?>
    	<?php if (!is_paged() ) { $home_pager = "home-post home-post-".$first; } //add home-post classes on front page only ?>
    	<div id="post-<?php the_ID() ?>" <?php post_class($home_pager); ?>>
    		<h3 class="entry-title"><a href="<?php the_permalink() ?>" title="<?php printf( __('Permalink to %s', 'erudite'), the_title_attribute('echo=0') ) ?>" rel="bookmark"><?php the_title() ?></a></h3>
    		<div class="entry-content">
    <?php the_excerpt(); ?>
    			<p class="more-link"><a href="<?php the_permalink() ?>" title="<?php printf(__('Keep reading &lsquo;%s&rsquo;', 'erudite' ), get_the_title() ) ?>"><?php _e('Read More <span class="meta-nav">&rarr;</span>', 'erudite' ) ?></a></p>
    
    </div> <!-- .entry-content -->
    </div> <!-- .post -->
    
    <?php } ?>
    			<hr />
    				<?php wp_link_pages('before=<div class="page-link">' . __( 'Pages:', 'erudite' ) . '&after=</div>') ?>
    
    <?php endwhile; ?>
    
    			<div id="nav-below" class="navigation">
    				<div class="nav-previous"><?php next_posts_link(__( '<span class="meta-nav">&larr;</span> Older posts', 'erudite' )) ?></div>
    				<div class="nav-next"><?php previous_posts_link(__( 'Newer posts <span class="meta-nav">&rarr;</span>', 'erudite' )) ?></div>
    			</div>
    
    		</div><!-- #content -->
    	</div><!-- #container -->
    <?php get_sidebar() ?>
    <?php get_footer() ?>

    Hope that helps,
    Andy

    Ok that code fixes one bug, but it hasn’t fixed the centering problem. I think I will have to gracefully bow out now with my pride slightly dented!

    My suggestion is to compare your page.php with your home.php (note that your menus display differently in the two – page.php has nice diagonal lines behind). Also, compare .page styles in your css with .post styles, because there’s something in your .page style that’s making centering work properly.

    If you use firefox, the web developer toolbar is very useful.

    Finally, you might want to think about removing some of these overflow: hidden statements from your css because I find they can make debugging confusing.

    Good luck,
    Andy

    Thread Starter cameronfrittz

    (@cameronfrittz)

    I got everything fixedup! But then for some reason on Mozilla firefox my search pane isnt showing up in the footer… any idea?

    Wow, looks great! Good job.

    Yep – You’re missing those closing divs in your home.php . Check my code above.

    Regards,
    Andy

    …the closing tags I’ve added in are:

    </div> <!-- .entry-content -->
    </div> <!-- .post -->

    Thread Starter cameronfrittz

    (@cameronfrittz)

    Hmm. They were already in my home.php

    any Idea?

    Thread Starter cameronfrittz

    (@cameronfrittz)

    Nevermind! Thanks for all your help!!! I think it turned out pretty good! I love it! Thanks so much!

    All working!
    Looks brilliant, nice one ??

    [BTW… I guess perhaps an old version of the page was still cached, and that’s why the corrections to home.php weren’t showing up. If that was the problem, it’s a good tip to disable caching while you’re still developing a site.]

    Thread Starter cameronfrittz

    (@cameronfrittz)

    Ok…. Im having the same problem again… I just cant get my flash fader to show up in IE. Could you kindoff walk me through this so i can do this everytime I add a FlashFader to a wordpress layout. Thanks again for all your help….

    This is the website. https://lauriegouldphotography.com

    Here is my header.php

    Ive tryed everything possible and even sourced the header.php from the last one I did….

    [Code moderated as per the Forum Rules. Please use the pastebin]

    Thread Starter cameronfrittz

    (@cameronfrittz)

    Never mind!!! I figured it out!!!!

Viewing 15 replies - 16 through 30 (of 31 total)
  • The topic ‘Website Works in everything But IE’ is closed to new replies.