[Resolved] how to move site title up or down in header

Home Forums Support [Resolved] how to move site title up or down in header

Home Forums Support how to move site title up or down in header

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #494856
    Ray

    Hello

    I am using GP2 premium, and can’t find the code
    to move the site title down in the header. It is too
    close to the top.

    I used this for the site description, and it responds to the
    different values I enter:

    }
    .site-description {
    margin-top: 15px;
    }

    But I tried this for the title, and no response when I
    put different values in:

    }
    .site-title {
    margin-top: 20px;
    }

    I see some stuff online using “position, absolute”, but
    I know nothing about how to choose the right CSS.

    TWO QUESTIONS:

    How to move the site title up/down with CSS, and

    Will it still render proportionately correct in mobile?

    Thanks

    Ray

    #494905
    Leo
    Staff
    Customer Support

    Hi there,

    Shouldn’t need CSS.

    Try adding some header padding: https://docs.generatepress.com/article/header-padding/

    Let me know if this works.

    #496554
    Ray

    Thank you Leo.

    But when I use padding, my header Logo is no longer in the correct position,
    as it moves with the site title.

    Is it NOT appropriate to use CSS, or just best to try padding first?

    And is it now best to use CSS to move logo to proper placement?

    Sorry, I am totally new to CSS.

    #496710
    Leo
    Staff
    Customer Support

    Nah I just thought you wanted to move them together.

    This should move the site title down:

    .main-title {
        padding-top: 20px;
    }
    #497531
    Ray

    Thanks Leo. That’s the flex I was looking for.

    Am looking at some CSS tips online, but really
    appreciate the help!

    #497762
    Leo
    Staff
    Customer Support

    Developer tool from your browser will be your best friend if you want to learn CSS 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.