How to modify the page title
-
The BD plugin is used with a theme (inFocus) that has its own internal SEO functions that allows a page title and description to be specified for each page. As such the site does not need to, and does not, use Yoast. (And it will not change either – it’s an established news site with over 3000 pages/posts…)
The page title is set to “The Henley Herald Business Directory” on the /business-directory page and that is OK.
But on, say, the Accountants category listing page (/business-directory/wpbdp_category/accountants/) the plugin inserts the category into the page title so this is being set:
<title>Accountants The Henley Herald Business Directory</title>
Equally on a company listing (/business-directory/12672/xyz-windows/): for company XYZ Windows the current title is
<title>XYZ Windows The Henley Herald Business Directory</title>
What I want to do is edit the relevant plugin code to have <title> set as
<title>Accountants in The Henley Herald Business Directory</title>
and
<title>XYZ Windows in The Henley Herald Business Directory</title>
i.e. change the code to add ‘ in’ after the category and company name.
I’ve searched various code modules but cannot work out where you insert the category or company name into <title>. Please can you tell me where it does this so I can modify the code?
https://www.ads-software.com/plugins/business-directory-plugin/
- The topic ‘How to modify the page title’ is closed to new replies.