WordPress.org

Ready to get started?Download WordPress

Forums

The "Published By" line appears different in IE and FF (21 posts)

  1. ehjay
    Member
    Posted 6 years ago #

    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?

    Thanks,
    Andrew.

  2. Len
    Member
    Posted 6 years ago #

    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.

  3. veevee
    Member
    Posted 6 years ago #

    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.

  4. ehjay
    Member
    Posted 6 years ago #

    Here's the link to my site, my apologies on forgetting it the first time. http://www.beleafer.ca

    Again, sorry for forgetting.

    Andrew.

  5. whistler2020
    Member
    Posted 6 years ago #

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

  6. Len
    Member
    Posted 6 years ago #

    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.

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

  7. ehjay
    Member
    Posted 6 years ago #

    So I guess there's no resolution so far.

    A little bit of a fan...

  8. ehjay
    Member
    Posted 6 years ago #

    Has anyone been able to get this resolved yet?

  9. haochi
    Member
    Posted 6 years ago #

    <span class="meta-start">Published</span> <span class="meta-prep entry-author">by</span> <a href="http://www.beleafer.ca/author/andrew/" 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="http://www.beleafer.ca/category/smelly-tacos" 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.

  10. ehjay
    Member
    Posted 6 years ago #

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

  11. TrishaM
    Member
    Posted 6 years ago #

    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 :)

  12. ehjay
    Member
    Posted 6 years ago #

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

  13. ehjay
    Member
    Posted 6 years ago #

    I found something similar in "theloop.php"

    Would that be the right file?

  14. TrishaM
    Member
    Posted 6 years ago #

    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"

  15. ehjay
    Member
    Posted 6 years ago #

    <?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">
    <?php
    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.

  16. TrishaM
    Member
    Posted 6 years ago #

    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

  17. ehjay
    Member
    Posted 6 years ago #

    Hmm, changed what needed to be changed, but I don't seem to see any change in IE.

    I wish people would stop using that browser.

  18. TrishaM
    Member
    Posted 6 years ago #

    wow I just looked more closely at your source code for your home page....looks like the theme author is making separate classes for just about every word in your metadata.... your stylesheet must be HUGE.......

    But since your changes appear in the source code, and still look "off" in IE (you did do a page refresh in IE, yes?)......then you might look in your stylesheet for further clues - perhaps there is something there...? Just a guess.....

    OR try a non-breaking space (&nbsp;) instead of a regular (blank) space - even IE has to respect that......

  19. ehjay
    Member
    Posted 6 years ago #

    Genius I tell ya! &nbsp; was the answer instead of just spaces. I appreciate all your help!!!

  20. ehjay
    Member
    Posted 6 years ago #

    Errr... you know what, it seems that firefox now shows that published by line with 2 spaces in front of "on" and "in"

  21. TrishaM
    Member
    Posted 6 years ago #

    Wonderful! Be sure to mark your topic "resolved".....this will help others who may have the same problem...

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.