Change header titles from H3 and H4 to H1 and H2 in child theme

Hey,

so I found that I could change the header-text and header-subtext to H1 and H2 in the functions.php on lines 335 and 336 but since I already got a child theme (with it’s own functions.php) I’d like to change it there.

I tried to copy the whole astrid_header_text function and simply replace H3 and H4 with H1 and H2 but that didn’t work. What am I doing wrong? I’ll probably need to unhook the function but I don’t know how.

Thanks for your help!

Hello,

You can copy the astrid_header_text() function into your child theme functions.php file with another name, for example astrid_header_text_modified()

Then you can copy the header.php file into your child theme folder and replace astrid_header_text() with astrid_header_text_modified() there (line 49).

Please feel free to ask any other questions that you might have.

Kind Regards, Roman.
aThemes Support

Works perfect. Thank you kind sir!

1 Like

You are welcome! :slight_smile:

Kind Regards, Roman.
aThemes Support