Support » Fixing WordPress » The “Published By” line appears different in IE and FF

  • Here’s an example of a line from a post on my site:

    In IE:
    Published by Andrewon March 16, 2008in Videos

    In Firefox:
    Published by Andrew on March 16, 2008 in Videos

    The spacing is correct in firefox. What change do I need to make?


Viewing 15 replies - 1 through 15 (of 20 total)
  • You might as well say “my blog is broken, how do I fix it?” I shouldn’t have to say this, and usually don’t anymore, (I just move on to the next question) but a LINK to your site would go a long way in diagnosing the problem since we would actually see the problem in action in addition to having access to the the actual HTML and CSS.

    Okay, keep it productive.

    A link would be really helpful. IE isn’t really standards compliant, at all, also, different browsers calculate widths and percentages differently.

    The good news is, there are a ton of work arounds out there to use one style for IE and another for all the other browsers, but you need to isolate the problem in the code first, before you can work around. For help with that, we really need a link.

    Here’s the link to my site, my apologies on forgetting it the first time.

    Again, sorry for forgetting.


    wow I dont think I’ve ever seen so many div’s and spans on one line.

    wow I dont think I’ve ever seen so many div’s and spans on one line.

    No doubt. They made this theme way too complicated then it need be.

    The developers of this theme actually have a Trac system for bugs and this issue has already been reported here. BTW, Leafs fan eh? 🙂

    So I guess there’s no resolution so far.

    A little bit of a fan…

    Has anyone been able to get this resolved yet?

    <span class="meta-start">Published</span> <span class="meta-prep entry-author">by</span> <a href="" class="url fn" title="View all posts by Andrew">Andrew</a> <span class="meta-prep entry-date">on</span> <span class="published" title="2008-04-13T18:57:15-0600">April 13, 2008</span> <span class="meta-prep">in</span> <a href="" title="View all posts in Smelly Taco's">Smelly Taco's</a>.

    That should do it, just open your theme’s index.php and put in the correct PHP code. That’s one heck of design.

    I don’t get what you’re telling me to do, sorry.

    Put a space after the word “in” before the closing </span> tag

    IE does not see spaces between DIVs and you don’t have a space between the spans. Firefox is smarter than IE 🙂

    Hmm, I can’t seem to find those lines in my index.php…

    I found something similar in “theloop.php”

    Would that be the right file?

    Sounds like you have a very odd theme…….

    but since you’re only talking about adding in a space it can’t hurt to try modifying your file “theloop.php”

    <?php /* Start the loop */ while ( have_posts() ) { the_post(); ?>

    <?php /* Permalink nav has to be inside loop */ if (is_single()) include (TEMPLATEPATH . ‘/navigation.php’); ?>

    <div id=”post-<?php the_ID(); ?>” class=”<?php echo attribute_escape(k2_post_class($post_index++, in_category($k2asidescategory), false)); ?>”>
    <div class=”entry-head”>
    <h3 class=”entry-title”>” rel=”bookmark” title='<?php printf( __(‘Permanent Link to “%s”‘,’k2_domain’), wp_specialchars(strip_tags(the_title(”, ”, false)),1) ); ?>’><?php the_title(); ?></h3>

    <div class=”entry-meta”>
    printf( __(‘<span class=”meta-start”>Published</span> %1$s %2$s %3$s<span class=”meta-end”>.</span>’,’k2_domain’),

    ‘<div class=”entry-author”>’ .
    sprintf( __(‘<span class=”meta-prep”>by </span> %s’,’k2_domain’),
    ‘<address class=”vcard author”>‘ . get_the_author() . ‘</address>’
    ) . ‘</div>’,

    ‘<div class=”entry-date”>’ .
    ( function_exists(‘time_since’) ?
    sprintf(__(‘%s ago’,’k2_domain’),
    ‘<abbr class=”published” title=”‘ . get_the_time(‘Y-m-d\TH:i:sO’) . ‘”>’ . time_since(abs(strtotime($post->post_date_gmt . ” GMT”)), time()) . ‘</abbr>’) :
    sprintf(__(‘<span class=”meta-prep”>on</span> %s’,’k2_domain’),
    ‘<abbr class=”published” title=”‘ . get_the_time(‘Y-m-d\TH:i:sO’) . ‘”>’. get_the_time($dateformat) . ‘</abbr>’)
    ) . ‘</div>’,

    ‘<div class=”entry-categories”>’ .
    sprintf( __(‘<span class=”meta-prep”>in</span> %s’,’k2_domain’),
    k2_nice_category(‘, ‘, __(‘ and ‘,’k2_domain’))
    ) . ‘</div>’

    <?php /* Comments */ comments_popup_link(‘0 <span>’.__(‘Comments’,’k2_domain’).'</span>’, ‘1 <span>’.__(‘Comment’,’k2_domain’).'</span>’, ‘% <span>’.__(‘Comments’,’k2_domain’).'</span>’, ‘commentslink’, ‘<span>’.__(‘Closed’,’k2_domain’).'</span>’); ?>

    <?php /* Edit Link */ edit_post_link(__(‘Edit’,’k2_domain’), ‘<span class=”entry-edit”>’,'</span>’); ?>

    <?php /* Tags */ if (is_single() and function_exists(‘UTW_ShowTagsForCurrentPost’)) { ?>
    <span class=”entry-tags”><?php _e(‘Tags: ‘,’k2_domain’); ?><?php UTW_ShowTagsForCurrentPost(“commalist”); ?>.</span>
    <?php } elseif (is_single() and function_exists(‘the_tags’)) { ?>
    <span class=”entry-tags”><?php the_tags(__(‘Tags: ‘,’k2_domain’), ‘, ‘, ‘.’); ?></span>
    <?php } ?>
    </div> <!– .entry-meta –>
    </div> <!– .entry-head –>

    <div class=”entry-content”>
    <?php the_content(sprintf(__(‘Continue reading \’%s\”, ‘k2_domain’), the_title(”, ”, false))); ?>

    <?php wp_link_pages(‘before=<p class=”page-links”>‘ . __(‘Pages:’,’k2_domain’) . ‘&after=</p>’); ?>
    </div> <!– .entry-content –>

    </div> <!– #post-ID –>

    <?php } /* End The Loop */ ?>

    That’s the section inside “theloop” that I think I need to edit to make things work. I hope.

    Good lord that is an overly complicated theme file. I can’t for the life of me imagine why a theme author would make such a file.

    BUT what you are looking for is in two DIVS above – the one called <div class=”entry-date”> look for the tag that says <span class=”meta-prep”>on</span> and put a space directly in front of the word “on” so that it reads like this: <span class=”meta-prep”> on</span> (note the space now between “prep”>” and “on”

    Do the same thing in the DIV called “entry-categories”…..look for the <span class=”meta-prep”>in</span> and put a space in front of the word “in”…..

    This will make all browsers put the space in where it should be

Viewing 15 replies - 1 through 15 (of 20 total)
  • The topic ‘The “Published By” line appears different in IE and FF’ is closed to new replies.