Meta tags - a neat way to make them

Articles and Information - phpBB 3.0 modifications and tweaks

Meta tags - a neat way to make them

Postby Mick » Sun Mar 19, 2017 12:49 pm

Make a copy of overall_header.html and name it, say, index_header.html.

Then add the tags to index_header.html, and in index_body.html, change this:

Code: Select all
<!-- INCLUDE overall_header.html -->

To this:
Code: Select all
<!-- INCLUDE index_header.html -->


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Or - better:

Just add a switch instead...

Open index.php and find:
Code: Select all
        'S_DISPLAY_BIRTHDAY_LIST'    => ($config['load_birthdays']) ? true : false,

After add:
Code: Select all
        'S_INDEX_PAGE'                => true,

Open styles/prosilver/template/overall_header.html and find:
Code: Select all
    <meta name="keywords" content="" />
    <meta name="description" content="" />

And replace with:
Code: Select all
    <!-- IF S_INDEX_PAGE-->
    <meta name="keywords" content="Insert key words here" />
    <meta name="description" content="Insert description here" />
    <!-- ENDIF -->

That way you don't have to muck around with two overall headers for mods and updates.
"The more connected we get the more alone we become" - Kyle Broflovski
User avatar
Mick
 
Posts: 24
Joined: Wed Mar 15, 2017 9:14 am

Return to Articles and information

Who is online

Users browsing this forum: No registered users and 3 guests

cron