Simon WP Framework Header Problem
-
Hi,
What code do I have to change to place my logo into the header.php and have a link too?
Kind Regards
-
You may need an anchor tag and an image tag.
The anchor tag will need to wrap around the image.
E.g<a href=""><img src="" /></a>
You should add this in a Child Theme header.php file.
Child theme is not working.
WP is not reading the header.php in the child folder.
Got it working now.
So where do we place
<a href="http://mysite.com"><img src="http://myste.com/blog/simon-wp-framework/images/my_logo_blog_sm.gif" width="313" height="112" alt="My Logo" longdesc="http://mysite/blog" />
in the header below?
<!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"> <title> <?php if (is_home()) { echo bloginfo('name'); } elseif (is_404()) { echo '404 Not Found'; } elseif (is_category()) { echo 'Category:'; wp_title(''); } elseif (is_search()) { echo 'Search Results'; } elseif ( is_day() || is_month() || is_year() ) { echo 'Archives:'; wp_title(''); } else { echo wp_title(''); } ?> </title> <meta http-equiv="content-type" content="<?php bloginfo('html_type') ?>; charset=<?php bloginfo('charset') ?>" /> <meta name="description" content="<?php bloginfo('description') ?>" /> <?php if(is_search()) { ?> <meta name="robots" content="noindex, nofollow" /> <?php }?> <link rel="stylesheet" type="text/css" href="<?php bloginfo('stylesheet_url'); ?>" media="screen" /> <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" /> <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <?php wp_head(); ?> </head> <body> <!-- header START --> <div class="container_12"> <div id="header-wrap"> <div id="nav-bar"> <div id="navbar-left"> <ul id="nav"> <li><a>">Home</a></li> <?php wp_list_pages('include=63,119&title_li='); ?> </div> <div id="navbar-right"> </a><a>"><img src="<?php bloginfo('template_url'); ?>/images/rss.gif" alt="Subscribe to <?php bloginfo('name'); ?>" /></a> </div> </div> <div class="header"> <div id="search-bar"> <?php include (TEMPLATEPATH . '/searchform.php'); ?> </div> <h1><a>/"> <?php bloginfo('name'); ?> </a></h1> <div class="description"> <?php bloginfo('description'); ?> </div> <div style="clear: both"></div> </div> </div> <!-- header END --> <div style="clear: both"></div>
Can anyone help us with this?
Try after
<div id="header-wrap">
I’m just guessing where it should go. You should have a trial and error process as you know best where, but it should be within this
<div id="header-wrap"> ... </div>
Andrew,
Thanks but our logo is not showing. The image path is correct, as if you place it in the browser it appearers.
The alt text is showing instead………………no wait we had a ‘..’ in front of the absolute path. Working ok now.
But the CSS is not working correctly, it hasn’t centred the page since we went over to the child template (the CSS is a copy of the original CSS)
Does anybody now why this happens?
When I go to http://myste.com/blog/simon-wp-framework/images/my_logo_blog_sm.gif
I get the message,The document you requested was not found. May we suggest our home page?
Also make sure you’re closing off your anchor tag after the image.
If your Child Theme stylesheet isn’t working correctly,
can you post the contents of it here, or if it’s long, can you use Pastebin.com?[snip]
You need to use
@import
to grab the styles from your parent theme
http://codex.wordpress.org/Child_Themes#Example_of_a_basic_Child_ThemeAndrew,
Many thanks, it was a stupid thing to over look.
You don’t need to post the whole content of your CSS. If you just link people to it, we can see it 🙂
Also please use code tags when you post code.
- The topic ‘Simon WP Framework Header Problem’ is closed to new replies.