• Resolved pshemek

    (@emmek)


    I’d like to change header.php behaviour on underConstruction, so I have to know that under-construction.php is currently applied (as far as I know, by use of template_redirect).

    I’d like to avoid including another custom header in under-construction.php, because the changes are slight.

    https://wordpress.org/plugins/underconstruction/

Viewing 1 replies (of 1 total)
  • Thread Starter pshemek

    (@emmek)

    I did it myself.

    In the top of under-construction.php template:
    $GLOBALS['is_under_construction'] = true;

    Then in header.php:

    global $is_under_construction;
    if ( $is_under_construction ) {...}

Viewing 1 replies (of 1 total)
  • The topic ‘How to detect inside the header that under-construction.php is being used?’ is closed to new replies.