[Resolved] centering main-title (site-title) & site-subscription VERTICAL in page header

Home Forums Support [Resolved] centering main-title (site-title) & site-subscription VERTICAL in page header

Home Forums Support centering main-title (site-title) & site-subscription VERTICAL in page header

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #311879
    Manuel

    Hi everybody and thanks for your great theme and always fast support.

    I want to center the site title and site description in the page header VERTICAL. I’ve created my page header following this documentation.
    https://docs.generatepress.com/article/merging-header-navigation-content/

    Any ideas?

    #311962
    Leo
    Staff
    Customer Support

    Hi there,

    Can you provide a link to your site? We should be able to provide some CSS for that.

    Thanks!

    #311979
    Tom
    Lead Developer
    Lead Developer

    The Page Header has a vertical alignment option if you’re adding the content inside the page header content area: https://docs.generatepress.com/article/page-header-content/#vertical-center-content

    #311983
    Manuel

    Thanks for the fast reply.
    I know about the vertical align option but because of seo i want to show site title and site description in the header.
    The link to the site:
    uzm.a2ac.de

    #312030
    Leo
    Staff
    Customer Support

    You could try to enter this in the Page Header Content then you can use the Vertical center content feature:

    <div class="site-branding">
    	<p class="main-title" itemprop="headline"><a href="http://SITE-URL-HERE" rel="home">site title</a></p>
            <p class="site-description">Site description</p>
    </div>

    Let me know if this works.

    #312203
    Manuel

    It works,thanks a lot.
    I found also another way to aim it:

    .home .site-header {
    position: relative;
    top: 30%;
    -webkit-transform: translateY(-30%);
    -ms-transform: translateY(-30%);
    transform: translateY(-30%);
    }

    #312215
    Leo
    Staff
    Customer Support

    Awesome. Glad we could help!

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