Saturday, January 21, 2023
HomeWordPress Developmentmedia library - How can I modify the web page title of...

media library – How can I modify the web page title of PDFs opened from a WordPress hyperlink which use the browser’s viewer?


Once you open a Media web page and click on the hyperlink to open an connected PDF, it makes use of the browser’s personal code to generate the HTML wrapper. And the HTML title is extracted from the PDF.

Now we have many paperwork the place the PDF title is just not what we would like the customer to see, eg. it’ll include “Microsoft Phrase – ” because the consumer generated the PDF from inside Phrase.

Ideally we’d wish to use JS or jQuery to change the title within the browser, however because the web page is outdoors of WordPress we can not work out methods to do it.

Or, if there’s a plugin PDF reader that will permit us to to do that, we would prefer to know if such a factor is on the market.

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments