• I recently downloaded a nice theme from https://www.romow.com/blog/wordpress-theme-divgrad/

    However it appears there is a slight problem with the theme. I setup the Secure and Accessible PHP Contact Form for WordPress and anytime I do, it doesn’t seem like the CSS are actually being read. I contacted the developers of the form who told me that the header file in my new theme needed the <?php wp_head(); ?> code right above the </head> line. They even logged into my blog and added it for me. The problem is that whenever it’s added the only thing that loads on the page is the blue backround. Mike, one of the developers of the Contact form told me I need this in order for things like the bad behavior plugin etc.. to work.
    He said that the author should have never taken out the wp_head to begin with. I am running WordPress version 2.3.2

    Can anybody give me an idea where I can look to find why adding this code just kills the page? The theme is called DivGrad if anybody could maybe just download it and see what they get. Thanks Guys.

Viewing 3 replies - 16 through 18 (of 18 total)
  • Thread Starter rhianblock

    (@rhianblock)

    Ok. I found this error when I enabled display_errors in my php.ini

    <b>Fatal error</b>: Call to undefined function check_header() in <b>D:\HostingSpaces\rhianblock\RhianBlock.com\wwwroot\blog\wp-content\themes\divgrad-10\functions.php</b> on line <b>36</b>

    Line 36 is the 3rd line right below and the one that starts with the $output check_header () code in it

    function kubrick_head() {
    $head = “<style type=’text/css’>\n<!–“;
    $output = ”; check_header();
    if ( kubrick_header_image() ) {
    $url = kubrick_header_image_url() ;
    $output .= “#header { background: url(‘$url’) no-repeat bottom center; }\n”;
    }
    if ( false !== ( $color = kubrick_header_color() ) ) {
    $output .= “#headerimg h1 a, #headerimg h1 a:visited, #headerimg .description { color: $color; }\n”;
    }
    if ( false !== ( $display = kubrick_header_display() ) ) {
    $output .= “#headerimg { display: $display }\n”;
    }
    $foot = “–></style>\n”;
    if ( ” != $output )
    echo $head . $output . $foot;
    }

    add_action(‘wp_head’, ‘kubrick_head’);

    function kubrick_header_image() {
    return apply_filters(‘kubrick_header_image’, get_settings(‘kubrick_header_image’));
    }

    Thread Starter rhianblock

    (@rhianblock)

    I commented out that line and everything is working now!

    Should I be worried about having to comment this line out? What does it do or is it written improperly?

    Thanks again guys

    Hi Rhian. That shouldn’t be a problem that I’m aware of. It seems to be checking for that default Kubrick theme header stuff, but I don’t know why the function would be undefined.

    But, glad it’s working ??

Viewing 3 replies - 16 through 18 (of 18 total)
  • The topic ‘When I add <?php wp_head(); ?> To my header file in theme page doesn’t load’ is closed to new replies.