I just started with php. I have a pretty simple site with a header and footer, as well as content between them.
Now I have every page that gets the title with a variable, for example:
<?php $title = "My Company - New Products"; ?>
However, instead of having this on every page, in the include heading, I just want the heading to be the standard “My company” and then pick up each H1 tag of each page.
It seems simple, but all my search results were specific to different CMS.
Many thanks.
source
share