Overriding the title tag of the webhelp responsive transformation

Post here questions and problems related to editing and publishing DITA content.
jojobar
Posts: 27
Joined: Wed Nov 02, 2016 9:01 pm

Overriding the title tag of the webhelp responsive transformation

Post 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?
julien_lacour
Posts: 498
Joined: Wed Oct 16, 2019 3:47 pm

Re: Overriding the title tag of the webhelp responsive transformation

Post 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
jojobar
Posts: 27
Joined: Wed Nov 02, 2016 9:01 pm

Re: Overriding the title tag of the webhelp responsive transformation

Post 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.
julien_lacour
Posts: 498
Joined: Wed Oct 16, 2019 3:47 pm

Re: Overriding the title tag of the webhelp responsive transformation

Post 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
Post Reply