![]() | | ||||||||
| | #1 |
| Guest
Posts: n/a
|
Hi guys, I am just wondering how I can remove the title from showing on top of my header (my header has the website name on it). Is it possible to do this without affecting the name title of my blog? Thanks |
|
| | #2 |
| Don't Just Sit There! Join Date: Jan 2009 Location: NE UK
Posts: 748
Thanks: 498
Thanked 231 Times in 208 Posts
| |
| | |
| | |
| | #3 |
| Guest
Posts: n/a
|
Hi, thanks for posting that link. Only problem is my code looks different from the code that is shown in that post. I tried deleting a bit of code that I thought may be it, but nothing happened. Here is the code for my theme - header.php: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="XHTML namespace"> <head profile="XFN 1.1 profile"> <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" /> <title><?php wp_title(''); ?><?php if(wp_title('', false)) { echo ' |'; } ?> <?php bloginfo('name'); ?></title> <meta name="generator" content="WordPress <?php bloginfo('version'); ?>" /> <!-- leave this for stats --> <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="pingback" href="<?php bloginfo('pingback_url'); ?>" /> <!--we need this for plugins--> <?php wp_head(); ?> </head> <body> <div id="container"> <div id="header"> <h2><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h2> <h3><?php bloginfo('description'); ?></h3> </div> <div id="menu"> <ul> <li class="emphasis"><a href="<?php echo get_settings('home'); ?>">Home</a></li> <?php wp_list_pages('title_li=&depth=1'); ?> </ul> </div> <!--header.php end--> Do you know which part should be deleted? Thanks |
|
| | #4 | |
| Don't Just Sit There! Join Date: Jan 2009 Location: NE UK
Posts: 748
Thanks: 498
Thanked 231 Times in 208 Posts
| Quote:
| |
| | ||
| | |
| | #5 |
| Guest
Posts: n/a
|
Thanks for your reply. I tried this but it took away my whole header image so had to change it back to normal. |
|
| | #6 | |
| Don't Just Sit There! Join Date: Jan 2009 Location: NE UK
Posts: 748
Thanks: 498
Thanked 231 Times in 208 Posts
| Quote:
- try this.<div id="container"> <div id="header"> <!-- <h2><a href="<?php echo get_settings('home'); ?>/"><?php bloginfo('name'); ?></a></h2> <h3><?php bloginfo('description'); ?></h3> --> </div> <div id="menu"> <ul> <li class="emphasis"><a href="<?php echo get_settings('home'); ?>">Home</a></li> <?php wp_list_pages('title_li=&depth=1'); ?> </ul> </div> <!--header.php end--> | |
| | ||
| | |
| | #7 |
| Guest
Posts: n/a
|
Lol that time it did take away the title, but it cut off about half of my header. Is there maybe code in the part we tried to cut off that has something to do with the size of the header?
|
|
| | #8 |
| Don't Just Sit There! Join Date: Jan 2009 Location: NE UK
Posts: 748
Thanks: 498
Thanked 231 Times in 208 Posts
|
There will be a piece of code within your style.css file for the "header" which details size and image for the header - this will need looked at. it should begin .header Sorry - what should have been a two minute job is turning into a marathon for you. Also - is there a "description" you wish to keep? |
| | |
| | |
| | #9 |
| Guest
Posts: n/a
|
Lol thats alright, I appreciate that your helping me out. By description, do you mean the blog description underneath the title? I would like to get rid of that also. Is this the code for my header size in style.css? #header { background: #2397E9 url(images/header.jpg) top center no-repeat; padding: 25px 35px 75px 35px; text-align: left; Thanks |
|
| | #10 |
| Don't Just Sit There! Join Date: Jan 2009 Location: NE UK
Posts: 748
Thanks: 498
Thanked 231 Times in 208 Posts
|
Hi Kerri - sorry for the delay Yes - that is the code - it is relying on the text to adjust the height of the header image (header.jpg) You could insert a line like height: 80px; or adjust the "80" to suit your needs - you may need to play around a bit! I am assuming the image is just a plain background (if not, then adjusting the height too much may distort it a bit) Again, sorry for all this -I am sure you will get there. |
| | |
| | |
| | #11 |
| Guest
Posts: n/a
|
Hi again, Thanks for offering to do this for me, but I think it will be best if I go through the code myself so that I learn a bit about it and know exactly what is done. So basically if I alter the code you mentioned before, then go into the next bit of code and enter in height: (number)px this should fix it? I will give it a go |
|
| | #12 |
| Don't Just Sit There! Join Date: Jan 2009 Location: NE UK
Posts: 748
Thanks: 498
Thanked 231 Times in 208 Posts
|
Yes, see what happens and report back ![]() Learn by trial and error - you know you aren't doing any harm by "fiddling" like this, so give it a go. And, yes, doing it yourself will show what can be done - and hopefully will help you on other occassions. |
| | |
| | |
| | #13 |
| Guest
Posts: n/a
|
The height:80px didn't seem to do anything, I even tried different numbers but nothing moved lol. Don't worry about it, I will figure it out. Thanks for being so helpful |
|
![]() |
|
| Tags |
| header, showing, title, top, wordpress |
| Thread Tools | |
| |
![]() |