• I’m using a static front pages and a few other static pages, these static pages are all calling wordpress headers and footers.

    However, these pages do not display any meta keywords or description since they are not wordpress documents.

    How do I make it so that I can put a few codes of keywords and description on the static page and it’ll be called into the wordpress header??

    Thanks

Viewing 1 replies (of 1 total)
  • Moderator Samuel Wood (Otto)

    (@otto42)

    www.ads-software.com Admin

    Depends on the theme, of course, but with 95% of them:

    function put_this_stuff_in_the_header()
    {
    echo "<meta whatever....>";
    echo "<meta whatever else....>";
    }
    add_action('wp_head','put_this_stuff_in_the_header');

    Do this at the top of your page, before you include the header.php and such.

Viewing 1 replies (of 1 total)
  • The topic ‘How do I call meta tags from static pages to WP header?’ is closed to new replies.