Jump to content

header code not working correctly


elviapw

Recommended Posts

Hello! This is the code for the header of my blog. It isn't displaying the CSS correctly, and the links aren't working. I think there is something wrong with the PHP, but am totally blind. Any ideas?

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

<head profile="http://gmpg.org/xfn/11">
<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />

<title><?php wp_title('//', true, 'right'); ?> <?php bloginfo('name'); ?></title>

<meta name="description" content="<?php bloginfo('description'); ?>" />

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/colours.css" type="text/css"/>
<link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
<link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
<link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />

<?php if ( is_singular() ) wp_enqueue_script( 'comment-reply' ); ?>

<?php wp_head(); ?>
</head>

<body id="top" class="<?php echo setColourScheme(); ?>">


<div id="header">

	<div class="blog-name"><a href="<?php echo get_option('home'); ?>/"><?php bloginfo('name'); ?></a></div>
	<div class="description"><?php bloginfo('description'); ?> </div> 


		<ul id="menu">
			<li><a href="<?php echo get_option('home'); ?>/" <?php if(is_home()) {echo 'class="selected"';} ?>>HOME</a></li>
			<li><a href="http...com">MAG</a></li>
			<li><a href="http...com">ABOUT</a></li>
			<li class="last"><a href="http...com">SUBSCRIBE</a></li>
		</ul>


		<div class="clearboth"><!-- --></div>




</div>
</body>

 

Thanks so much!

Elvia

Link to comment
Share on other sites

It's a setting in the php.ini file. For development you should set it to on, and set error_reporting E_ALL, E_STRICT. In lieu of that, you can set those per-script at runtime by pasting in at the top of your code:

 

ini_set('display_errors', 1);
error_reporting(E_ALL);

 

On a live, production server, you'd want to log errors, rather than output them to the browser.

Link to comment
Share on other sites

This error reports 3 times. Help!

 

 

Strict Standards: is_a(): Deprecated. Please use the instanceof operator in /home/content/-/-/html/wp-includes/functions.wp-styles.php on line 26

 

Strict Standards: is_a(): Deprecated. Please use the instanceof operator in /home/content/-/-/html/wp-includes/functions.wp-scripts.php on line 68

 

Strict Standards: is_a(): Deprecated. Please use the instanceof operator in /home/content/-/-/html/wp-includes/script-loader.php on line 661

Link to comment
Share on other sites

This is the first time I've seen this, I believe.

 

The manual says: (Version) "5.3.0 This function is no longer deprecated, and will therefore no longer throw E_STRICT warnings."

 

So, apparently you can ignore that warning completely. If that's the only warning you're getting, you can get rid of the E_STRICT parameter.

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.