• Hello,

    im doing a design course off the wordpress learn site.
    For that I need to change the header to what I like but the header im want to try to make from a real header uses a svg logo and as far as I know wordpress is not working with svg’s.

    Is there a way I can use the svg ?

Viewing 11 replies - 1 through 11 (of 11 total)
  • Hi @roelof

    I hope you are doing well today.

    In the first place, you can use this plugin https://pl.wordpress.org/plugins/svg-support/, which will help to support SVG images in the media library. But that is only a half-solved problem. The real question is, where will you replace that logo?

    Will it be:

    • theme settings (check if that supports to upload svg images)
    • page builder -> header (as above, check if that will allow to attach svg image)
    • custom theme (most of themes CSS will support jpg/png images, and size can be adjusted; in another scenario, you would need to add custom CSS to support the size of that SVG file)

    Kind Regards,
    Kris

    Thread Starter roelof

    (@roelof)

    I was thinking on the site editor of gutenberg in the template parts.

    So if I understand this :


    Basic Usage:
    – First, install and activate SVG Support via your WordPress dashboard
    – Upload SVG files to your media library like any other image
    – Works seamlessly with Image blocks, Cover blocks and featured images

    `<br><br>it should not be a problem <code><br><br></code></p>

    • This reply was modified 6 months, 1 week ago by roelof.
    Thread Starter roelof

    (@roelof)

    yep,

    it seems to work

    Now I need I think some css to make the colors like this :

    • This reply was modified 6 months, 1 week ago by roelof.
    • This reply was modified 6 months, 1 week ago by roelof.
    Thread Starter roelof

    (@roelof)

    Sorry, I cannot show the logo as it schould be and how it is now.
    Getting really annoyed with the forum

    url logo with colors : https://pasteboard.co/NBv9z7U3hxYp.png
    url logo without colors: https://pasteboard.co/gIqgDG6Y66h4.png

    After dinner or tomorrow I have to find out the css to make the colors right

    • This reply was modified 6 months, 1 week ago by roelof.

    Hi @roelof,

    I am a bit confused about what you are actually trying to achieve. Can you please confirm if you need the logo to show up in grayscale?

    I believe you added the SVG using an image block. The Gutenberg page builder comes with an out-of-the-box solution to apply a duotone filter on images, which should help with this.

    I hope the following documentation helps you further: https://learn.wordpress.org/lesson-plan/use-duotone-filters-to-change-color-effects/

    Best Regards,
    Nebu John

    Thread Starter roelof

    (@roelof)

    The logo must be in color and if im looking at the orginal site that is done with css.
    But I will look at the page if it can help me

    Hello @roelof,

    I hope things are going well for you.

    The logo must be in color and if im looking at the orginal site that is done with css.

    I’ve reviewed the original site, and the SVG logo was written in an HTML page, meaning there are no external SVGs linked.

    But I will look at the page if it can help me

    This is still unclear. If you have the original site access, you can review the SVG written in the HTML page and make changes accordingly to that.

    Please let us know if you require any additional information.


    Kind Regards,
    Imran Khan

    Thread Starter roelof

    (@roelof)

    Thanks,

    I copied the svg out of the source so now I have a external svg.
    Still I think I need to use css to make the colors.
    Pity I cannot include the file into this forum so you can take a look what to change to make things easier.

    Hello @roelof,

    Not sure, but if you try anything, an SVG editor website where you can easily add colour like here is one example: https://www.svgviewer.dev/

    Please give it a try if you haven’t yet.


    Kind Regards,
    Imran Khan

    Thread Starter roelof

    (@roelof)

    Just tried it with the website but no logo to be seen

    Changed a part to this :


    <path fill="#941b80" d="M0 22.4h11.4l15.5 39.8 14.9-39.8h10.6L32 74.3H21.1zM112.4 35.4c-1.2-1.5-2.6-2.7-4.3-3.7-1.7-1-3.8-1.5-6.3-1.5-2.3 0-4.4.5-6.1 1.5-1.7 1-2.6 2.4-2.6 4.3 0 1.5.5 2.8 1.5 3.7 1 .9 2.2 1.7 3.5 2.3 1.4.6 2.8 1 4.3 1.3 1.5.3 2.8.5 3.9.8 2.1.5 4.1 1.1 6 1.9 1.9.7 3.5 1.7 4.8 2.8 1.4 1.2 2.4 2.6 3.2 4.3.8 1.7 1.2 3.7 1.2 6.1 0 2.9-.6 5.4-1.9 7.5-1.2 2.1-2.8 3.8-4.8 5.1-2 1.3-4.2 2.3-6.7 2.8-2.5.6-5.1.9-7.6.9-4.3 0-8.1-.7-11.3-2-3.3-1.3-6.2-3.7-8.7-7.2l7.4-6.1c1.6 1.6 3.4 3 5.4 4.3 2 1.2 4.4 1.9 7.2 1.9 1.2 0 2.5-.1 3.8-.4 1.3-.3 2.4-.7 3.4-1.2s1.8-1.2 2.4-2.1c.6-.8.9-1.8.9-2.9
    `<br><br>but it does not seem to work <br></p>

    Thread Starter roelof

    (@roelof)

    Thanks a lot.

    I have now the logo with colors and I could even store it as a png.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘svg problem’ is closed to new replies.