I've been making a site locally using Laragon and just uploaded it to my host. When I did that, the styling of my site's header changed. My heading code:
TWIG{% set splitTitle = site.title|split("") %} {% set finalTitle = "" %} {% for letter in splitTitle %} {% switch finalTitle|length %} {% case 0 %} {% set finalTitle = finalTitle~letter~"<span>" %} {% case titleLength %} {% set finalTitle = finalTitle~"</span>"~letter %} {% default %} {% set finalTitle = finalTitle~letter %} {% set titleLength = splitTitle|length+5 %} {% endswitch %} {% endfor %} <div class="clearfix"> <a href="{{ home_url }}"><h1 class="header-site-title">{{ finalTitle }}</h1></a> </div>
The style is changing because the hosted version is putting the <a> tag inside of the <h1> tag. Is there any logical reason this would be happening?