Headlines in header
-
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:
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
That must be because you are applying custom styles to the
h1andh2elements in the header. Change the custom style to apply to their respective classes instead, i.e..header_titleand.header_desc.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
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.phpand change line 294 from this:$input['custom_css'] = wp_kses( $input['custom_css'] );to this:
$input['custom_css'] = wp_kses_post( $input['custom_css'] );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
Try replacing the content of the theme’s
admin/validator.phpfile with the updated one here: http://graphene.googlecode.com/svn/trunk/graphene/admin/validator.phpLet me know if there’s any error message still showing.
Viewing 7 posts - 1 through 7 (of 7 total)
- You must be logged in to reply to this topic.
