Weird behaviour of header part
-
For a new theme I created a home.html template with this line on top:
<!-- wp:template-part {"slug":"header","area":"header","tagName":"header"} /-->
I created a header.thml part with this code:
<!-- wp:pattern {"slug":"7girello/header"} /-->
and a header.php pattern with this line among the rest:
<!-- wp:site-title {"level":0,"fontSize":"large"} /-->
I changed the fontSize to x-large but nothing changed. I controlled again all the code in the various files and try some test to debug it, finally I end up to place 2 lines in home.html as follows:
<!-- wp:template-part {"slug":"header","area":"header","tagName":"header"} /-->
<!-- wp:pattern {"slug":"7girello/header"} /-->I then obtained 2 titles, the first with ‘large’ size and the second with ‘x-large’ size.
I repeated exactly the same schema template->part->pattern for the footer and changing the fontsize of title works there with no troubles.
I’m quite confused now why this behaviour happen.
- You must be logged in to reply to this topic.