Jump to content

Formatting problem on a php page


ukscotth

Recommended Posts

Hi,

 

Im having a formatting nightmare, all Im trying to do is add an image to the top right corner of a wordpress header but I cant get it aligned properly. It always ends up being in the wrong place. The site is using this wordpress theme http://www.elegantthemes.com/preview/TheProfessional/

 

I just want to add a image to the top right of the page opposite the logo. Heres a snippet of the header file where I think it should be done :

 

<body<?php if (is_home()) echo(' id="home"'); ?>>
<div id="container">
	<div id="header">
		<a href="<?php bloginfo('url'); ?>">
			<img src="<?php bloginfo('template_directory'); ?>/images/logo.png" alt="Professional Logo" id="logo"/>
		</a>

		<div id="menu">
			<?php $menuClass = 'nav';
			$primaryNav = '';
			if (function_exists('wp_nav_menu')) {
				$primaryNav = wp_nav_menu( array( 'theme_location' => 'primary-menu', 'container' => '', 'fallback_cb' => '', 'menu_class' => $menuClass, 'echo' => false ) ); 
			};

 

If anyone could show me how it would be most appreciated as Its starting to drive me crazy lol.

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.