Support Forum

Changing header name in topic view (adding )

SP sptab
sptab
Member

Hello,

I’m try to make a small change to the topic view page, I’d like to add a <H1> tag to the header name that displays the topic title.

I’ve found that sp_TopicHeaderName function seems to take care of that.  I just wanted to know the proper way to include my changes: basically adding <H1></H1> tags around the topic name.

Thank you.

3 Answers

New Answer

YS Yellow Swordfish
Yellow Swordfish
Member

Using H1 tags is not really the best way.

You should define a new class in your forum theme CSS file that can emulate the H1 tags (if you wish) and then pass that new class as a tagClass argument to the spHeaderName() function. In all of our supplied themes the tagClass is passed as ‘spHeaderName’ so all you would need to do is replace this class name with your new one.

And if that is all in a custom theme – as it should be – then it is safe from future updates from us.

SP sptab
sptab
Member

Thanks, I’ll have a look at that.

I want <H1> for SEO reasons, it’s probably good to have the topic name this way in addition to the page TITLE…

MP Mr Papa
Mr Papa
Member

for best seo, you should only have 1 H1 tag… multiple could have undesired consequences…