Community Forums › Forums › Archived Forums › Design Tips and Tricks › Remove box from behind topnav bar
Tagged: header, navigation, topnav
- This topic has 14 replies, 4 voices, and was last updated 12 years, 9 months ago by
Susan Nelson.
-
AuthorPosts
-
April 28, 2013 at 5:21 am #38181
samantha
MemberHi, I'm using the Freelance theme. I have removed the topnav bar by adding the following code to style.css:
/* Hide Navigation Menu in home page*/
.home #topnav {
display:none;
}This has removed the text but still left behind a black box that covers the site title. Can anyone tell me how to remove it?
Thanks!
April 28, 2013 at 5:35 am #38182wmwebdes
MemberLink to your site please Samantha.
April 28, 2013 at 5:39 am #38183samantha
Membersite is http://www.tyingvines.org
April 28, 2013 at 5:43 am #38184wmwebdes
MemberGet the message...
"Tying Vines
...will be back shortly"April 28, 2013 at 5:47 am #38185samantha
MemberSorry, I was asked to put that up whilst changing code. I have removed it now.
April 28, 2013 at 6:14 am #38187wmwebdes
MemberHave you sorted it Samantha - looks OK this end?
April 28, 2013 at 6:24 am #38189samantha
MemberNo, haven't sorted it. I am using Chrome on a Mac. I have tried using Firebug Lite to identify what it is but can't figure it out. Is there any way to upload a screenshot to the forum?
April 28, 2013 at 6:46 am #38194wmwebdes
MemberI added a top margin as shown below, try that
#header {
width: 960px;
height: 110px;
margin: 35px auto 0;
padding: 0;
}April 28, 2013 at 7:01 am #38197samantha
MemberThe black box is still there, but it did move the site title and description down below the box which looks better than when the box was over the top of the title/description text.
Ideally I'd still like to remove that black strip from the top of the page altogether. Any ideas?
Thanks for your help. So much to learn... sigh.
April 28, 2013 at 7:21 am #38201Susan Nelson
ParticipantThat box across the top of the page is actually part of the whole background image (as seen here). To remove it, you'll need to recreate the background image - maybe just crop that part off depending upon what you want to do with the design.
April 28, 2013 at 7:24 am #38203samantha
MemberThanks, Susan. Will try that tomorrow.
April 28, 2013 at 7:50 am #38205frobn
MemberI think the freelance theme an Add topnav section function
Edit functions.php and remove it.
p.s. it is best to make a backup of the functions.php and edit through the cpanel or ftp
April 28, 2013 at 8:02 am #38211wmwebdes
MemberSamantha
As Susan points out, the top black section is part of the background image from this section of CSS:body {
background: #CCCCCC url(images/bg.png) repeat-x;
color: #333333;
font-size: 14px;
font-family: Georgia, Times New Roman, Trebuchet MS;
margin: 0 auto 0;
padding: 0;
line-height: 24px;
}The image has a black top section and then a gray gradient below.
If you remove the image part from the CSS you will be left with a gray backgrounf of colour #CCCCCCOr as Susan mentioned you could crop the black top section from the image and upload - make sure you keep a copy of the original image.
Looks as though you are about there.
April 29, 2013 at 5:22 am #38383samantha
Memberfrobn, I did find that later and had done as you suggested. Much tidier!
Thanks very much wwemdes & Susan - it's now just right 🙂
I changed the code to:
body {
background: #FFFFFF repeat-x;
color: #333333;
font-size: 14px;
font-family: Georgia, Times New Roman, Trebuchet MS;
margin: 0 auto 0;
padding: 0;
line-height: 24px;
}Thanks again.
April 29, 2013 at 5:24 am #38384Susan Nelson
ParticipantGlad I could help!
-
AuthorPosts
- The forum ‘Design Tips and Tricks’ is closed to new topics and replies.