Jump to content

Php/html Question


Recommended Posts

I want to have this image appear in my header around the search bar. When ever I try inserting the image I get a syntax error. I made a div and inserted the image via html code. Can someone give me a hand if they don't mind. This is my site, http://nolan.heliohost.org/test/ Thanks for the help! :)

This is the unaltered header.php code

 

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.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'); ?>" />
<meta name="distribution" content="global" />
<meta name="robots" content="follow, all" />
<meta name="language" content="en" />
<meta name="verify-v1" content="7XvBEj6Tw9dyXjHST/9sgRGxGymxFdHIZsM6Ob/xo5E=" />

<title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' :'; } ?> <?php bloginfo('name'); ?></title>
<link rel="Shortcut Icon" href="<?php echo bloginfo('template_url'); ?>/images/favicon.ico" type="image/x-icon" />

<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
<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_enqueue_script("jquery"); ?>
<?php wp_head(); ?>

<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/superfish/superfish.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/superfish/hoverIntent.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.flow.1.1.js"></script>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/iepngfix_tilebg.js"></script>


<!--IE6 Fix-->
<style type="text/css">
img, div, a, input, body, span {
behavior: url(<?php bloginfo('template_url'); ?>/images/iepngfix.htc);
}
</style>

<script type="text/javascript">
var $j = jQuery.noConflict();
$j(document).ready(function() {
$j('ul.ot-menu').superfish();
});
</script>

<script type="text/javascript">
$j(function() {
	$j("div#controller").jFlow({
		slides: "#slides",
		width: "620px",
		height: "440px",
timer: <?php echo ot_option('slider_interval'); ?>,
duration: 400
	});
});
</script>

</head>

<body>

<div id="wrap">

<div id="header">

	<div class="headerleft">
		<p id="title"><a href="<?php echo get_option('home'); ?>/" title="Home"><?php bloginfo('name'); ?></a></p>
	</div>

	<div class="headerright">
		<form id="searchformheader" method="get" action="<?php echo $_SERVER['PHP_SELF']; ?>">
		<input type="text" value="Search Here and Press Enter" name="s" id="searchbox" onfocus="if (this.value == 'Search Here and Press Enter') {this.value = '';}" onblur="if (this.value == '') {this.value = 'Search Here and Press Enter';}" />
		<input type="hidden" id="searchbutton" value="Go" /></form>

		<div id="navicons">
		 <?php if(ot_option('social_rss') == 1) { ?><a href="<?php echo ot_option('social_rss_url'); ?>" target="_blank"><img class="navicon" src="<?php bloginfo('template_url'); ?>/images/rss_icon.png" title="RSS Feed" alt="RSS" /></a><?php } else { } ?>
		 <?php if(ot_option('social_facebook') == 1) { ?><a href="<?php echo ot_option('social_facebook_url'); ?>" target="_blank"><img class="navicon" src="<?php bloginfo('template_url'); ?>/images/facebook_icon.png" title="Facebook" alt="Facebook" /></a><?php } else { } ?>
			<?php if(ot_option('social_twitter') == 1) { ?><a href="<?php echo ot_option('social_twitter_url'); ?>" target="_blank"><img class="navicon" src="<?php bloginfo('template_url'); ?>/images/twitter_icon.png" title="Twitter" alt="Twitter" /></a><?php } else { } ?>
		</div>

	</div>

</div>

<div id="navbar">

	<ul class="ot-menu">
		<li<?php if (is_home()) { echo " class=\"current_page_item\""; }?>><a href="<?php echo get_settings('home'); ?>"><?php _e("Home", 'organicthemes'); ?></a></li>
		<?php wp_list_pages('title_li=&depth=4&sort_column=menu_order'); ?>
	</ul>

</div>

<div style="clear:both;"></div>

Edited by Tjoene
Added code tags
Link to comment
Share on other sites

Hey guy, you should put these in code tag like this, it makes thing more readable . And they will help you easily

<div id="navbar">
<ul class="ot-menu">
<li<?php if (is_home()) { echo " class=\"current_page_item\""; }?>><a href="<?php echo get_settings('home'); ?>"><?php _e("Home", 'organicthemes'); ?></a></li>
<?php wp_list_pages('title_li=&depth=4&sort_column=menu_order'); ?>
</ul>
</div>
<div style="clear:both;"></div>

Link to comment
Share on other sites

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.   Paste as plain text instead

  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...