[Resolved] Styling site name

Home Forums Support [Resolved] Styling site name

Home Forums Support Styling site name

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1515171
    Hasan

    Hi,

    I want to format the site name like the following image – a background color for the first three letters: https://prnt.sc/vc3c6o

    Please suggest how to achieve that.

    Thanks!

    #1515204
    Leo
    Staff
    Customer Support

    Hi there,

    – Create a new Hook element:
    https://docs.generatepress.com/article/hooks-element-overview/

    – Copy and paste this content:

    <div class="site-branding">
        <p class="main-title" itemprop="headline">
            <a href="https://SITE-URL-HERE/" rel="home">
    	    <span style="background-color: #efefef;">BTA</span> Holidays
    	</a>
        </p>
    </div>

    – Choose the generate_before_header_content hook.

    – Set it to display the entire site.

    Let me know if this helps πŸ™‚

    #1515232
    Hasan

    Awesome! Thanks!! πŸ™‚

    #1515234
    Leo
    Staff
    Customer Support

    No problem πŸ™‚

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