h2
tags for h1
tags there, or create a child theme and overwrite the template.
the_title
should just print the post title onto the page without any HTML tags around it so doing that might end up nesting tags where they shouldn’t be so probably best to avoid that I think.
My theme allows for the page header to be a slider or just a single custom slide (hero banner) with a custom title or the page title. Even if “page title” is selected though, it’s still under the CSS class .agni-slide-title.
I changed the function name to my_title_tag just because that’s what the one example I saw used, and because when I tried re-using “fortun_agni_slider_h_tag” is said “this function is already referenced” or something. I only know CSS, I know NOTHING about PHP, so I hoped/assumed the function name was just whatever I wanted to call it, like a CSS class… but I guess I was wrong? :-\ LOL
]]>