bug fix: is_singlar will check for any post type. Other wise you will have to check for 3 different once. is_single is_page and is_attachement