[Resolved] Add SVG Logo like this site

Home Forums Support [Resolved] Add SVG Logo like this site

Home Forums Support Add SVG Logo like this site

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #1526956
    24xstudio

    Hey,

    I am already using the SVG logo on my site but it’s damn slow and that’s the reason my FCP is high I guess.

    I want to give it a try.

    Thanks

    #1527070
    Leo
    Staff
    Customer Support

    Hi there,

    You would basically need to rebuild the logo structure using the inside_navigation hook:
    https://docs.generatepress.com/article/generate_inside_navigation/

    https://docs.generatepress.com/article/hooks-element-overview/

    #1527103
    24xstudio

    Hey,

    I am not good at this, kindly guide me ๐Ÿ™‚

    #1527254
    Leo
    Staff
    Customer Support

    Try something like this as your hook content:

    <div class="navigation-branding"><div class="site-logo">
        <a href="https://cliffyb.com/" title="cliffyB" rel="home">
    	SVG CODE HERE
        </a>
    </div></div>
    #1527274
    24xstudio

    Thanks.

    But how can I generate the SVG code? I have an SVG image.

    Also, doing this will also improve my pagespeed, and after doing this I have to remove the current logo from the customizer?

    Lastly, what about the height and width of the SVG logo?

    Thanks

    #1527328
    Leo
    Staff
    Customer Support

    But how can I generate the SVG code? I have an SVG image.

    This isn’t a theme-specific question so I’d recommend Googling for some instructions.

    Also, doing this will also improve my pagespeed

    I don’t think you will see a difference there but not sure either.

    and after doing this I have to remove the current logo from the customizer?

    Yes

    Lastly, what about the height and width of the SVG logo?

    Might need some CSS tweak but can you add the logo in first?

    #1527346
    24xstudio

    Kindly check the logo I adjusted the height but its too small

    #1527350
    24xstudio

    Resolved

    #1527354
    Leo
    Staff
    Customer Support

    Glad to hear ๐Ÿ™‚

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