• Hi, I’ve been running into an issue with editing the page.php or index.php files. Changes that should have no effect on the layout make the content go from centered to pushed to the left, and in one theme slightly off screen. But only in IE.

    In one theme I changed an <h2> tag to an <h1> tag in the page.php. When I saw what it did, I undid it, saved, and refreshed but it was still messed up. re-uploded the page.php file and it was fine. tried the change again and same thing.

    In another theme I changed “the_content” to “the_excerpt” and everything was off to the left in IE and the top menu bar was slightly lower than it should be in IE and firefox. Content was still centered in Firefox.

    Why would this mess with the layout and how do I get around this?

Viewing 3 replies - 1 through 3 (of 3 total)
  • Doesn’t do that for me in regular themes at all if I just change the_content to the_excerpt unless there was styling added to functions.php of the theme specifically for said content.

    I could see how changing h2 to h1 tag can – if you do this, you should also copy styling of that h2 tag and add that styling to your h1 tag in your theme’s style.css.

    What themes are affected by your changes?

    Thread Starter barefootbare

    (@barefootbare)

    The theme that gets messed up when the header tag is changed (or removed) is zeeDisplay.

    And the one that messed up when I changed content to excerpt is black-lucus.

    I didn’t think it was a standard css issue, it seems like absolutely any change you make screws it up.

    Soooo, I tested it by deleting one blank line from the index.php – no code whatsoever – and it messed up the layout. I undid the change and saved it, but it wouldn’t go back to normal until I re-uploaded the original index.php file.

    I have no clue what’s going on.

    That is weird. Deactivate all plugins. And, if you installed your theme via auto-install in backend, try re-uploading the theme manually via FTP or cpanel, etc. For that matter, try re-uploading WordPress files manually as well.

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Irrelevant changes make layout go crazy’ is closed to new replies.