How to check if the header is already loaded?
-
my Ajax plugin loads the header twice sometimes and it breaks the page in my theme. but removing the “<?php get_header(); ?>” for instance, in single.php solves the loading problem, but the page would not be loaded correctly if it was opened directly in the browser.
How can I insert a code, instead of “<?php get_header(); ?>” so it loads the header only when it’s not done yet?
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘How to check if the header is already loaded?’ is closed to new replies.