You’re right in that it’s not working. I don’t see an element with ID of #breadcrumbs
on the page either, so that’s likely the issue. Can you try .topic-category
in place of that ID?
4 Likes
Thank you @justin
Updated to the code below and it is working again.
<script>
document.addEventListener('DOMContentLoaded', function(){
if(document.querySelector(".topic-category a[href*='/c/german']")){
document.documentElement.lang = "de";
}
});
</script>
4 Likes