fixed external css path logic for wp hooks