Page 1 of 1

Overriding the title tag of the webhelp responsive transformation

Posted: Sat Aug 28, 2021 12:07 am
by jojobar
I am using a custom webhelp responsive template. In my generated help there are many pages where the <title> tag (in the generated html) is repeated, this is because the software uses the h1 tag as the title. Is there a way to override the title for a particular file either in the map or in the dita file?

Re: Overriding the title tag of the webhelp responsive transformation

Posted: Mon Aug 30, 2021 2:08 pm
by julien_lacour
Hello,

What do you mean by "there are many pages where the <title> tag (in the generated html) is repeated"? (The title at the beginning on each topic?)
Is it possible for you to extract and send us a small HTML fragment from a topic where title element is duplicated?

Why did you want to override these titles? What do you want to achieve?

Regards,
Julien

Re: Overriding the title tag of the webhelp responsive transformation

Posted: Mon Aug 30, 2021 3:52 pm
by jojobar
Multiple html files created by the web responsive output of DITA has same title. This is because different parts of the help section has the same title.

I want to fine tune the title tag for SEO reasons.

Hope this makes it clear.

Re: Overriding the title tag of the webhelp responsive transformation

Posted: Tue Aug 31, 2021 12:56 pm
by julien_lacour
Hello,

For SEO purpose you may need to define DITA keywords.

You can also search on the internet for DITA SEO to optimize your search keywords.
Also there is a topic on DITA Writers.

If you also want to customize displayed title, you may need to use navtitle.

Regards,
Julien