WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] TwentyTen child theme move content up page (6 posts)

  1. Matulini Nicky
    Member
    Posted 2 years ago #

    I want the 1st line of content to start higher up the page. What do I need to edit, style.css or function.php and how?

  2. peredur
    Member
    Posted 2 years ago #

    First line of what content? Each post in a category list? Single posts? Single pages? Archive lists?

    Can you post a URL we can look at, describing what you want?

    Cheers

    PAE

  3. peredur
    Member
    Posted 2 years ago #

    Actually, assuming you're talking about the #main div then this is what you need to alter:

    #main {
        clear: both;
        overflow: hidden;
        padding: 40px 0 0;
    }

    What you need is:

    #main {
        padding: nnpx 0 0;
    }

    Where 'nn' is the padding you want.

    It's really easy to find this sort of thing and test any changes if you use Firebug. Honest.

    Cheers

    PAE

  4. Matulini Nicky
    Member
    Posted 2 years ago #

    Sorry peredur, that did not work. Maybe I am putting the code in the wrong place. I assume I am changing the style.css. Where do I find #main div?

    I want my text within the page or post to start nearer the top of the page. At the moment there is a big white gap underneath the menu bar.

  5. Matulini Nicky
    Member
    Posted 2 years ago #

    Just worked it out - thanks, you've been a great help - Nicky

  6. peredur
    Member
    Posted 2 years ago #

    Good stuff Nicky.

    If you use Firebug, it will show you the CSS that needs to be changed and it will also tell you exactly where the existing rule is located (what file and what line number). From that you can work out where to put your own style rule so that it will overwrite the existing one (usually by putting it in your child theme's style.css file, but some themes put style rules in the HTML header which makes life more difficult).

    You can also test your changes in Firebug to make sure they do what you want them to do before actually committing yourself to making them.

    Cheers

    PAE

Topic Closed

This topic has been closed to new replies.

About this Topic