ukscotth Posted November 15, 2010 Share Posted November 15, 2010 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 More sharing options...
ukscotth Posted November 17, 2010 Author Share Posted November 17, 2010 any ideas ? im stumped Link to comment https://forums.phpfreaks.com/topic/218749-formatting-problem-on-a-php-page/#findComment-1135634 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.