Headlines in header

  • Krissie

    #1329

    Hello,

    I found out, that title and subtitle on my page are shown correctly only on the homepage and in the categories, but not on the other pages, because of these lines in the header.php:

    <?php /* The site title and description */
    if (is_singular() && !is_front_page()) {
    $title_tag = 'h2';
    $desc_tag = 'h3';
    } else {
    $title_tag = 'h1';
    $desc_tag = 'h2';
    }
    ?>

    This crashes my header, you can see it here:

    support_graphene_headekesn.png

    Top: Homepage

    Bottom: Single post

    Do you have an idea to fix this? Is it possible to use h1 and h2 on all pages without using a child theme?

    Thank you and best regards,

    Krissie

    Admin

    Syahir Hakim

    #15308

    That must be because you are applying custom styles to the h1 and h2 elements in the header. Change the custom style to apply to their respective classes instead, i.e. .header_title and .header_desc.

    Krissie

    #15309

    When I try to apply the changed style to the Graphene options, I get this error:

    Warning: Missing argument 2 for wp_kses(), called in /home/www/……../wp-content/themes/graphene/admin/validator.php on line 294 and defined in /home/www/……../wp-includes/kses.php on line 502

    Warning: Cannot modify header information – headers already sent by (output started at /home/www/……../wp-includes/kses.php:502) in /home/www/……../wp-includes/pluggable.php on line 934

    What’s wrong?

    Admin

    Syahir Hakim

    #15310

    Hurm..is the Custom CSS still updated? This bug slipped past me through the development and beta testing period. It’s a simple fix, though.

    Just open up the graphene/admin/validator.php and change line 294 from this:

    $input['custom_css'] = wp_kses( $input['custom_css'] );

    to this:

    $input['custom_css'] = wp_kses_post( $input['custom_css'] );

    Krissie

    #15311

    That works, but now I have another problem:

    I changed the slider speed, but after I saved it I got this error:

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/www/……../wp/wp-content/themes/graphene/admin/validator.php on line 60

    Warning: array_map() [function.array-map]: Argument #2 should be an array in /home/www/……../wp/wp-content/themes/graphene/admin/validator.php on line 61

    Warning: in_array() [function.in-array]: Wrong datatype for second argument in /home/www/……../wp/wp-content/themes/graphene/admin/validator.php on line 61

    Warning: Cannot modify header information – headers already sent by (output started at /home/www/……../wp/wp-content/themes/graphene/admin/validator.php:60) in /home/www/……../wp/wp-includes/pluggable.php on line 934

    What do I have to do now?

    Krissie

    Admin

    Syahir Hakim

    #15312

    Try replacing the content of the theme’s admin/validator.php file with the updated one here: http://graphene.googlecode.com/svn/trunk/graphene/admin/validator.php

    Let me know if there’s any error message still showing.

    Krissie

    #15313

    No error. Thanks. 🙂

    Krissie

Viewing 7 posts - 1 through 7 (of 7 total)

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!