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
https://forums.phpfreaks.com/topic/218749-formatting-problem-on-a-php-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

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