Twenty ten – remove page-title space/padding

  • Author
    Posts
  • #635427

    gbraviation
    Member

    I am using the twenty ten theme and would like to remove the space that the page title takes up. I dont want to have a page title before my page text/content or a large space/padding. Does anyone know the css code to remove this like I have done with the site/blog title and padding http://gbraviation.wordpress.com

    Thanks

    The blog I need help with is gbraviation.wordpress.com.

    #635690

    I’m confused: since the title is gone at the gbraviation website, why are you asking? Did you solve the problem?

    Anyways, I did it by setting the size of everything in the title to 0 (see ottawatrainexpo.wordpress.com). Klugey, but it did the job.

    #site-title {
    float:left;
    font-size:0;
    line-height:0;
    width:0;
    margin:0;
    }

    #site-description {
    clear:right;
    float:right;
    font-size:0;
    line-height:0;
    width:0;
    margin:0;
    }

    #635691

    Oops, just found a better way on a different forum thread:

    #site-title {
    display: none;
    }

    #site-description {
    display: none;
    }

    As you can probably tell, I’m new at this, and learning CSS as I hack through the stuff I want to change.

    #635705

    gbraviation
    Member

    Hi ottawatrainexpo, Yes, I had found a way to remove the ‘site-title’ but its the ‘heading’ (page-title/entry-title??) between the navigation bar and the page text that I want to remove….elp!!!

    Thanks

    #635706

    gbraviation
    Member

    I also want to get rid of the space it leave so the text is visable 20px below the nav bar??

    #635709

    You have no content on the pages so I cannot look at any sort of spacing between the body content and the nav so all I can do is hide the title. Until you get body content on a page there is no way to adjust that spacing.

    .page #content .entry-title {
    display:none;
    }
    #635710

    Actually there is a bit if body text on the home page. The above shifts that up to where the title was.

    #635713

    gbraviation
    Member

    Thanks thesacredpath, thats done the job – I appreciate your help!!

    #635714

    You are welcome.

    #635715

    richwoodward
    Member

    This was helpful, but how do you alter the padding between the menu and the body text once you have removed the page title? On the twenty eleven theme, even shifting the body text up to where the page title was leaves a big white gap between the menu and the body text.

    Many thanks in advance!

    #635716

    @richwoodward, we need a link to the site you are talking about.

    #635719

    richwoodward
    Member
    #635720

    Here you go.

    #access {
    margin-bottom: 0;
    }
    
    #main, .entry-content, .entry-summary, .singular.page .hentry {
    padding: 0;
    }
    
    .page .entry-title {
    display:none;
    }
    #635721

    richwoodward
    Member

    thanks, that’s great.

    #635722

    You are welcome.

The topic ‘Twenty ten – remove page-title space/padding’ is closed to new replies.