Autonav with custom header tag

Permalink
Hi

I have an autonav block and i want to add a h2 tag that can be set within the block editor.

I want to be able to add the same background color behind both the autonav ul and the h2 tag within a div. I know I can create an area in a template and add a class to that and place the h2/ul tags content in there but I don't want to create multiple templates with differently styled areas as the site has 100s of pages.

So, currently I can only style each individual h2 and ul tag. Is there a way to add dynamic calls to the database from the autonav templates so that I can set a h2 tag within the autonav block editor or something like it?

 

This website stores cookies on your computer. These cookies are used to improve your website experience and provide more personalized services to you, both on this website and through other media. To find out more about the cookies we use, see our Privacy Policy.