moving image closer to header on homepage only

  • Author
  • #1203658



    I’m trying to move the image on my homepage closer to the top of the page – ideally, I would like to align it with “about” on the left sidebar.

    I only want this change on the homepage as the other pages are fine.

    Many thanks in advance!


    The blog I need help with is


    Start with this, but edit your main page and remove the blank paragraph that is above the image. The 2.5 top margin is for the pages with titles such as about. The 0 top margin in .home #primary is for the main page. The two require different margins because the about page has a title and the home page does not.

    #primary {
    margin-top: 2.5rem;
    .home #primary {
    margin-top: 0;


    Super, it worked perfectly. Thanks so much!


    You are welcome.

The topic ‘moving image closer to header on homepage only’ is closed to new replies.