How to detect home page in functions.php?

Support Forums for LiveMesh Themes & Plugins Forums Agile Theme Support How to detect home page in functions.php?

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #4580
    jhodgski
    Member

    Sorry, me again!

    How can I detect if we’re on my (static) home page in my functions.php?

    None of these…
    is_front_page() || is_home() || is_page('home')
    …are working for me.

    #4581
    jhodgski
    Member

    Calling is_front_page() via the wp_head hook works fine.

Viewing 2 posts - 1 through 2 (of 2 total)
  • The topic ‘How to detect home page in functions.php?’ is closed to new replies.