Tell me more ×
WordPress Answers is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

Ok so I know you're thinking this is a CSS thing and not wordpress related but please read through and look at the examples I'm talking about first. I'm not saying it's not a CSS issue, but there's something more than CSS messed up here based on the fact that the styles have not changed from the first CPT to the second. Here goes.

We have had a CPT setup for bios for some time on the site. You can view the bio here.

http://www.jeitosa.com/bio/karenbeaman/

Those are working perfectly fine. What we recently did was make a copy of those, change the tabs on that page, and query a different CPT with a bit different formatting. Nothing changed as far as structure in the header/footer/etc.

We are using the template single-services.php to control the single post for the "services" post type. It's pulling the correct template and everything, but for some reason it's seriously jacking up the elements on the page. It's only in IE though, of course, and I think it's pulling in styles from the print.css file. I have a print.css file that is set to "media=print" but from what I can tell in the developer toolbar in IE, it's pulling some of those styles in for the site as well. So that is 1 potential problem.

Anyway, I have all the code but not sure what to post to be honest. Here is the link to the pages that are messed up. Again, only in IE.

http://www.jeitosa.com/service/certified-project-management-cpm/

Please let me know if you have any thoughts or suggestions. I'm taking them all at this point. I'll post the code for that single-services.php in a bit.

share|improve this question
Like you said, this is not specific to WordPress, for generic PHP/MySQL/CSS/JavaScript/jQuery/TinyMCE issues and development - try stackoverflow.com – soulseekah Oct 18 '11 at 13:49

closed as off topic by toscho May 14 '12 at 22:44

Questions on WordPress Answers are expected to relate to WordPress within the scope defined in the FAQ. Consider editing the question or leaving comments for improvement if you believe the question can be reworded to fit within the scope. Read more about closed questions here.

2 Answers

I don't think it is your print.css, I disabled that in IE 8 and was getting the same issues.

Try pasting the following code into the bottom of your function file. It sometimes works:

<?php if (strpos($_SERVER['HTTP_USER_AGENT'],"MSIE 8")) {  /* tricks IE 8 into behaving  **/ 

header("X-UA-Compatible: IE=7");} ?>
share|improve this answer

Actually it was a css problem after all (font-size:0 to be exact that needed to be removed). Thanks for the help though. What a pain.

share|improve this answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.