Your theme seems to be placing the override code in an earlier part of the HTML so that it is not overridden by the custom code in the theme. Screenshot here:
https://www.dropbox.com/scl/fi/h3bsnf19umq88cl4e92zf/OverridePlacement.png?rlkey=jg5521339w7yl4uhjsyzl9nuf&st=3rdvrcw9&dl=0