on my website I want to use the H1 tag for the main title when the front page is shown, and the P tag when another page is shown. For SEO reasons.
I created a child theme to accomplish the same, but then came across the following code, from which I see your theme already has this feature built in:
Strangely enough, on my website the P tag is used on the front page as well. I am using Generatepress in its normal configuration, with the site title shown in the header.
So is_front_page() is true, but why do you check is_home()? It applies to blogs only, if I understand the documentation correctly.
Once I remove is_home() the functionality works as desired.