content:en_us:dev_theming_meta_tags

Table of Contents

Meta Tags

The core/meta.php can be used to add any <meta> tags required in your theme.

Hook

The theme engine loads the core/meta.php file in your theme directory and expects to find the theme_page_meta_tags hook defined. Your hook should return any <meta> tags that you require.

Examples

The following returns the old 4.01 transitional doctype.

function theme_page_meta_tags()
{
    return "
       <!-- Meta tags -->
       <meta charset='utf-8'>
       <meta name='viewport' content='width=device-width, initial-scale=1.0'>
    ";
}

search?q=clearos%2C%20clearos%20content%2C%20dev%2C%20theming%2C%20maintainer_dloper%2C%20maintainerreview_x%2C%20keywordfix&amp;btnI=lucky

content/en_us/dev_theming_meta_tags.txt · Last modified: 2014/12/23 22:52 by dloper