How to combine my sketch with wifi manager?

The problem started from ESP8266 core 2.6.0+ as new declaration of HTTP_HEAD conflicts with the one in WiFiManager.

You can fix the issue by using this new WiFiManager (latest version v1.0.5)