[resolved] adjust formatting whitespace wp_get_archives outputs (4 posts)

  1. bradyjfrey
    Posted 9 years ago #

    I'm having an issue typical of IE where it's formatting my HTML with spaces because of the whitespace it sees (I'm aware this is an IE bug and not aparent in other browsers). The typical fix is to adjust your code to avoid this white space... however, wp_get_archives is the one causing the issue.

    The question is, where in the program can I get into to adust how wp_get_archives outputs code, I'm not seeing it in the wp-include files anywhere? I just want to adjust it to remove tabs and hard returns, so it sets my list to how it should in every other browser.

    You can notice the version, and why I need such sensitivity, in the footer of my site:

    right now on a holiday theme (not completed), but the footer is consistent with the rest of my site themes throughout the year - you can see that all areas need to align properly, and in this case, the whitespace in the code sends IE on a tiffy. Any guidance on adjusting this is appreciated! Thank you!

  2. bradyjfrey
    Posted 9 years ago #

    Nevermind, solved it, here's how to adjust it:
    1) in the wp-includes folder open up 'template-functions-general.php'
    2) on line 271 remove the /t and the /n (to remove the tab and hard break
    3) save it

    Now my code is unformatted with tabs and returns, looks beautiful in IE as intended. Sorry for the troubles, now I"ll have to remember this hack - might be a nice bug to post?

  3. ALWstaff
    Posted 9 years ago #

    Prolly not a "bug" . . . just another one of those unfortunate aspects of IE6 -

  4. bradyjfrey
    Posted 9 years ago #

    And IE7 which is what makes me angry:(

Topic Closed

This topic has been closed to new replies.

About this Topic