I am currently working on updating the title of a few pages that I created a while ago. I currently set the title for all of the pages inside a header.php file which I then include from all of my other pages to update the titles.
However, now I want to update the title of the other pages to include the current title in Addition to particular tab they are in. Each tab is a different file. Tab_A.php, Tab_B.php, etc. Is there a way to do that by just updating my header.php file?
This is the content of the header.php file
<head>
<meta charset="utf-8">
<title>My Website</title>
</head>
<body>
I set the title in Tab_A.php by calling this inside it like this
<?php include("header.php"); ?>
But I would like the title to be change to read "Tab_A - My Website"