Is your home page blog index or static page?
is_home()
is meant to check if we are on blog index (latest posts), while is_front_page()
checks if home is static page set in Settings > Reading.
Is your home page blog index or static page?
is_home()
is meant to check if we are on blog index (latest posts), while is_front_page()
checks if home is static page set in Settings > Reading.