Program works only with theme's default HTML structure