Add keywords and description to phpBB’s index page without installing a mod

In these days of intelligent search engines, meta keywords and descriptions do not play a major role in SEO. Crawlers are more interested in the contents of the page rather than it’s keywords and descriptions. However, some people might still want to add keywords and descriptions to their pages, seeing that search engines like Yahoo still put some weightage on them.

A vanilla phpBB installation does contain keyword and description meta element, but they do not have any content. Here’s an easy to add meta keywords and description to phpBB’s index page without installing and/or maintaining any kind of a mod.

  • Go to /styles/prosilver/template/ and open the overall_header.html file with your favourite text editor. Click Edit > Select all, or just press ‘Ctrl +A’. After that, copy the selected code by clicking Edit > Copy or by pressing ‘Ctrl + V’.
  • Create a new HTML file in the same directory and name it index_header.html.
  • Open the newly created file and paste the contents of the clipboard in it.
  • In index_header.html, find :
    <meta name="keywords" content="" />

    Replace with :

    <meta name="keywords" content="keyword1, keyword2, keyword3" />

    Find :

    <meta name="description" content="" />

    Replace with :

    <meta name="description" content="Here goes the description" />
  • Open /styles/prosilver/template/index_body.html.
  • Find :
    <!-- INCLUDE overall_header.html -->
  • Replace with :
  • <!-- INCLUDE index_header.html -->

From now on remember to update index_header.html when you make changes to overall_header.html, or else, the changes won’t show up in the index page.

One Comment