[Resolved] Double Menu Display – Header & Footer Problems
For some weird reason, the alignments of my footer and header menus of my wordpress-based website are all over the place, but only on certain pages. They all use the same footer PHP includes. The weird thing is that it is just on the pages I have my main flash players on. I use Brightcove and ustream (both a forms of videos players). However, even singular page posts (still using brightcove) are OK. What is even weirder is that my site and another site using the same custom template are having the same problem. No updates have been made because they are, well, custom. In both cases I do not recall making any change that would create the problem. I updated to the latest wordpress with the other site and that did not fix it. If it was just the Brightcove players, then the ustream pages would still work, and they don’t, so I don’t think it is that. Maybe a new update with flash did it, but that still doesn’t really make sense either. We are checking out the HTML and PHP code and there is nothing obvious standing out. We don’t see a missing div or anything.
Here is how the “subscribe menu bar” should look. Notice the footer is fine too.
Here is a page that has the problem: (subscribe menus and footers are all over the place)
I guess my question is, without you seeing the code, do any of you know of an issue with wordpress that would just make the issue happen out of the blue? The problem is no more than a week old.
One or more of the 72 validation errors on that page will be causing the problem.
You have lots of un-closed line breaks in the post, view the editor in HTML view, and look for the breaks
Esmi, all you had to say is that you don’t know, but thx for the validation link.
Thx, David. I will try that. Although, I am not sure if a line break, it mal-formed to HTML or XHTML, would be the case, but I will still try.
I do know. You have missing
</div>tags. Even a mis-placed
</body>tag. The are dozens of serious validation issues on that page and right now it’s impossible to say which of those errors is causing your problem. But any one one of them could completely bork a page in a number of browsers.
Well that is even more f’ed because when I look at the actual html in the editors it doesn’t show half of those problems. It is only when wordpress has rendered the page completely that those get generated. In both cases, you guys brought me a little closer so thx.
I will let you know what I find.
<br>elements are in the right column text widget, that is why you are not seeing them in the html.
Copy the content out of the widget, create a draft post or page and paste it in, check and tidy the html, copy the html and paste it back in the text widget, delete the draft post or page.
Thank you, David. I removed all the text widgets and then posted it to see and the issues were still there. The pages that have the problem do use different headers than the main pages so I think I am narrowing it down. The same text widgets are on the pages that work though so it still may be something else. I will keep looking. Thank you for all your help!
I found the issue(s).
For starters, I am using custom headers/pages. I was using PHP includes to use different headers inside custom pages. An example start header was something like this:
Template Name: videos
<?php include_once($_SERVER[“DOCUMENT_ROOT”] . “/wp-content/themes/customLightGateStudios/header-videos.php”); ?>
After doing some research on getHeader() via this Codex, http://codex.wordpress.org/Function_Reference/get_header
I used the following:
Template Name: videos
<?php get_header(videos); ?>
I am not sure if php includes are allowed anymore or what, but the fix seemed to work. There was also some html clean to do (as you guys suggested) and there still is, however, the blunt of the fix came from replacing header includes with the get header function.
- The topic ‘[Resolved] Double Menu Display – Header & Footer Problems’ is closed to new replies.