• Home
    • Privacy Policy
    • Contact
  • How to
  • Tips
  • Android
  • WordPress
  • Blogger Tips & Tricks
  • Google
  • Facebook
  • Genesis Tutorials

A New Tab

How to change the height of Menu bar in twenty ten wordpress theme.



A perfect and default theme that comes with the installation of worpdress is Twenty Ten theme. It is simple and yet powerful theme that executes all the funtionalities that comes with wordpress3.0. After removing banner I thought of minimizing the height of menu bar as the original one is some what big and occupying space. I am sharing how I did that and if you are trying to do the same this will help you.

Let us see how to change the change the twenty ten default menu

Login to Dashboard
Appearance -> Editor
Go to Style.css
Check for the following part of code

#access {
background: #336699;
display: block;
float: left;
margin: 0 auto;
width: 950px;
}

and add the following line

height: 30px;

after width attribute

check for the below part of the code in same file ( style.css )

#access a {
color: #FFF;
display: block;
line-height: 30px;
padding: 0 10px;
text-decoration: none;
}

and change the line-height to 30, i.e, line-height:30px;

and in the below part of the code

#access ul ul {
box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
-moz-box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
-webkit-box-shadow: 0px 3px 3px rgba(0,0,0,0.2);
display: none;
position: absolute;
top: 30px;
left: 0;
float: left;
width: 180px;
z-index: 99999;
}

and change the top:38px; value to 30px i.e, top:30px



You might also like

  1. How to add search box in twenty ten nav menu
  2. How to change menu color in wordpress twentyten theme
  3. Customize WordPress Twenty Ten Theme
  4. How to convert any wordpress menu to wordpress 3.0 menu ?
  5. How to add logo and banner in twentyten wordpress theme header
  6. How to disable right click in wordpress without any plugin
  7. Change genesis change speak your mind text
Filed Under: How to, Wordpress Tagged With: Twenty Ten Wordpress Theme

Comments

  1. Anish K.S says:
    13/02/2011 at 1:42 pm

    Thanks Aswin. its a very useful tip those using the most popular WordPress theme Twenty Ten.

    Reply
    • aswin says:
      13/02/2011 at 2:23 pm

      Thanks Anish

      Reply
  2. jenny says:
    07/08/2011 at 12:21 am

    Thank you so much for this, I’ve been playing around with various bits of code for ages!

    Reply
  3. Thomas says:
    27/09/2011 at 7:17 pm

    Hi and thanks for a cool page.

    I’m totally new to this and to html but I’ve managed to get rid of the search bar based on your articel. I use Twenty eleven theme and want to minimize the area above the header image I’ve put in and thought I could follow this one even though it was for a different template.
    But here you need to change in the style.css template and since I’m using child theme I guess I need to change in the original hence loosing my changes if I update. Is that correct?

    Reply
    • aswin says:
      27/09/2011 at 10:43 pm

      Hi Thomas

      I understand your problem, soon I will write an article about that

      Reply

Speak Your Mind Cancel reply

*

*

Recent Articles

  • FaceBook introduced Graph Search Friends, Photos : What is it ?
  • How to terminate the account in WHM cPanel
  • How to create a new account in WHM cPanel
  • Unlock Pattern Lock Android tablet-Phone
  • Find Android Version and Update your Samsung Galaxy Tab Automatically
  • Find IMEI Number of your Samsung Galaxy Tab
  • Clean and Speed up chrome with one click

Return to top of page

Copyright © 2013 · Genesis Sample Theme on Genesis Framework · WordPress · Log in