• Resolved hongpong

    (@hongpong)


    Well I am trying to put in a new banner graphic into Default theme, by altering the header.php and stylesheet the usual way. Yet now I find that just before the end of the header, wp_head() is called and it inserts (with ‘mysite’ redacted)

    <link rel="EditURI" type="application/rsd+xml" title="RSD" href="(mysite)/xmlrpc.php?rsd" />
    <style type='text/css'>
    <!--#header { background: url('(mysite)/wp-content/themes/default/images/header-img.php?upper=0000AA&lower=D7D73F') no-repeat bottom center; }
    #headerimg h1 a, #headerimg h1 a:visited, #headerimg .description { color: white; }
    #headerimg { display: none }
    --></style>

    and that’s totally a punk thing to do because I cannot figure out how to switch it off or adjust it. Where is this call to header-img.php coming from? Is this new somehow? Is it just there because I toyed with the banner auto-gradient feature? I last fooled around with WP 1.5 and I don’t remember it.

    If this is blindingly obvious I apologize for wasting everyone’s time. Thanks!

Viewing 4 replies - 1 through 4 (of 4 total)
  • First, I don’t consider it obvious.

    Second, it does appear after one has “toyed” with the gradient. But then who wouldn’t?

    Two ways you can deal with (i.e. remove) it:

    1. This is a function called from the default theme’s functions.php file. Look in there for:

    add_action('wp_head', 'kubrick_head');

    and comment it out:

    // add_action('wp_head', 'kubrick_head');

    2. The settings for this (which is what triggers kubrick_head()) are found in the wp_options table of your WordPress database. If you’re comfortable with working with MySQL admin tools, dropping the kubrick_header_image, as well as kubrick_header_color and kubrick_header_display records (if there)in the options table will *reset* things to default wth default.

    EDIT: Ok, I’m overworking this one (I do that from time to time). Just checked and under Advanced, selecting default colors and saving appears to remove these options from the db (and the ouput through wp_head()). I guess this moves us back towards “obvious.” :)

    Thread Starter hongpong

    (@hongpong)

    Well done. Pressing that little ‘default’ button indeed removed the CSS statements. Thanks a lot!

    A second random question. What does the EditURI thing mean? Is that some kind of tag to let XMLRPC blog tools find the correct URL?

    Trying to get rid of the same <link rel="EditURI" type="application/rsd+xml" title="RSD" href="(mysite)/xmlrpc.php?rsd" /> line.

    It looks like this problem has been solved, but I’m still confused: Where is this ‘default’ button? I’ve looked in PhpMyAdmin (the options table) and don’t see any of those Kubrick items.

    Just checked and under Advanced, selecting default colors and saving appears to remove these options from the db (and the ouput through wp_head()).

    Where is ‘advanced’ ? In the WP admin or PhpMyAdmin…?

    I have the same problem in my wordpress 2.0 blog but i can’t manage to solve it…

    I have tried to comment the line:
    add_action(‘wp_head’, ‘kubrick_head’);
    in kubrick default theme and I have checked in wp_options table, but i don’t have any reference to kubrick.

    I can’t found the menu in wordpress admin to set default colors and solve the problem… where is this “advanced menu”?!?

    Thx in advance!

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Why does wp_head() make new CSS statements?’ is closed to new replies.