Home Forums WoodMart support forum SVG Logo not properly sized

SVG Logo not properly sized

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #436038

    taigi100
    Participant

    Hey,

    I’m trying to change my side logo to SVG. However, I can’t get it to be properly sized (looks very small with a set max width and it’s invisible if I disable the add height/width params). I’m guessing the SVG doesn’t contain the proper width and height params but I have no clue how to add them.

    Also, if you would be able to share how to add such parameters myself, I would appreciate it!

    • This topic was modified 2 years, 4 months ago by taigi100.
    • This topic was modified 2 years, 4 months ago by taigi100.
    Attachments:
    You must be logged in to view attached files.
    #436310

    Hello,

    You need to open your SVG icons file with some editor like Sublime Text or default system text editor and add width=”31″ height=”40″ attributes to your <svg> tag like it is shown: https://prnt.sc/l897ta
    Then you will need to re-upload your icons in WordPress Dashboard.

    Best Regards

    #436318

    taigi100
    Participant

    Did what you mentioned with various values, it still shows smaller than I want it to be. I want it to be various sizes in various locations, but for the logo in the header I want it to be 236×85 for desktop. Tried with your values and those as well, but the logo is still too small.

    <svg version="1.1" baseProfile="tiny" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
    	 x="0px" y="0px" viewBox="0 0 1200 1200" overflow="visible" xml:space="preserve" width="236" height="85">
    #436326

    taigi100
    Participant

    Never mind, figured it out, the SVG I had received had a lot of white space and the text was centred in the middle of a rect. Moved the text to the upper-left corner and make the image smaller, and it’s all good now ^_^

    #436327

    Hello,

    You are Most Welcome.

    We are glad that you managed to solve the problem yourself. You are Great!!!

    Let us know if there’s anything else we can do for you! You can always reach us at any time. We are always here to help you.

    Have a wonderful day.

    Topic Closed.
    Best Regards.

Viewing 5 posts - 1 through 5 (of 5 total)

The topic ‘SVG Logo not properly sized’ is closed to new replies.