How to hide a title if there is a H1 and H2?

Does anyone know how to hide a title if it consist of both H1 and H2?

I currently have this:

h1.wp-block-site-title removes only the top and h2.wp-block-site-title the bottom. Is there a way to hide both of these in using the hide title function?




This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer