Forums

edit output of wp_head (4 posts)

  1. frescova
    Member
    Posted 2 years ago #

    I'm using wp for an internal project to manage lots of content and then displaying it in a "bare" template;

    In essence all I want is to display the basic html components that make up the page - like below.

    `<html>
    <head>
    <meta name="description" content="The Description" />
    <meta name="keywords" content="The keywords" />
    <title> The Ttitle</title>
    </head>
    <body>
    The Body...
    </body>
    </html>'

    I still want to display some of the elements that are written by the wp_head function, but not all of them - how can I strip the ones I don;t want out? like rss, robots, generator, etc...

    Any advice would be appreciated.

  2. yu
    Member
    Posted 1 year ago #

    yeap, got the same problems here.. where can we find wp_head code to edit?

  3. Ganners
    Member
    Posted 1 year ago #

    wpincludes/general-template.php

    You want to look around function get_the_generator on line 2175.

  4. yu
    Member
    Posted 1 year ago #

    yeap, allready 'cleared' it out) thnx!

Topic Closed

This topic has been closed to new replies.

About this Topic