[Resolved] Replacing SVG’s

Home Forums Support [Resolved] Replacing SVG’s

Home Forums Support Replacing SVG’s

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #1582782
    Dan King

    Hello,

    I’m using your theme that has .svg as images and icons and i want replace the icon…

    This is the current code:

    <svg xmlns=”http://www.w3.org/2000/svg&#8221; viewBox=”0 0 39.813 50″><path d=”M27.149 17.726v.942a3.506 3.506 0 00.679 6.947 2.15 2.15 0 01.02 4.298l-.02-.001-.02.001a2.15 2.15 0 01-2.129-2.149.679.679 0 00-1.358 0 3.512 3.512 0 002.828 3.44v1.07a.679.679 0 001.358 0v-1.07a3.506 3.506 0 00-.679-6.947 2.149 2.149 0 112.149-2.149.679.679 0 001.358 0 3.512 3.512 0 00-2.828-3.44v-.941a.679.679 0 00-1.358-.001z”></path><path d=”M5.204 50h18.1a5.21 5.21 0 005.204-5.204v-7.825c6.612-.378 11.665-6.045 11.287-12.656a11.992 11.992 0 00-11.287-11.287V5.204A5.21 5.21 0 0023.304 0h-18.1A5.21 5.21 0 000 5.204v39.593A5.209 5.209 0 005.204 50zm33.258-25c0 5.873-4.761 10.633-10.633 10.633S17.195 30.873 17.195 25s4.761-10.633 10.633-10.633c5.87.006 10.627 4.763 10.634 10.633zM5.204 1.357h18.1a3.85 3.85 0 013.846 3.846v1.584h-1.584a.679.679 0 000 1.358h1.584v4.884c-6.612.378-11.665 6.045-11.287 12.656A11.992 11.992 0 0027.15 36.972v3.526H1.357V8.145h18.439a.679.679 0 000-1.358H1.357V5.204a3.852 3.852 0 013.847-3.847zM1.357 41.855h25.792v2.941a3.85 3.85 0 01-3.846 3.846h-18.1a3.85 3.85 0 01-3.846-3.846v-2.941z”></path><path d=”M22.025 8.145h1.257a.679.679 0 000-1.358h-1.257a.679.679 0 000 1.358zM14.253 47.624a2.376 2.376 0 100-4.753 2.376 2.376 0 000 4.753zm0-3.393a1.018 1.018 0 110 2.037 1.018 1.018 0 010-2.037z”></path></svg>

    I wanted to replace the icon with this:

    https://learnclub.co.uk/wp-content/uploads/2020/12/gem.svg

    I tried the obvious but nothing happened…

    https://learnclub.co.uk/c-learn-club-home-test-page/

    Thanks!

    Dan

    #1583122
    David
    Staff
    Customer Support

    Hi there,

    you can use this site to upload your SVG

    https://jakearchibald.github.io/svgomg/

    – then click on the Markup tab and copy and paste <svg> code it provides.

    #1584008
    Dan King

    oh wow! BOOOOOOOM you’re amazing thank you!

    Dan :-))))

    #1584029
    David
    Staff
    Customer Support

    haha – glad to be of help

    #1597520
    Oscar

    Hello David, I’m trying to use my own SVG icons, using the tool you recommended to Dan (https://jakearchibald.github.io/svgomg/) but when I add the code the size of the icon is too small.
    You can see the site where I’m using it: https://brightled-3d9351.ingress-alpha.easywp.com/servicios/
    I have translated changing the height and width to 1em and 2em, however I can’t get a correct view of the icon.

    Would you please help me.

    #1597559
    Elvin
    Staff
    Customer Support

    Hi,

    I have translated changing the height and width to 1em and 2em, however I can’t get a correct view of the icon.

    You’ll have to change both width and height if you want the svg size to change because the SVG respects its aspect ratio.

    Try changing both width and height to 2em. You should see the SVG change in size once you do. 😀

    A wise man once said:
    "Have you cleared your cache?"

    #1597936
    Oscar

    Hi Elvin, I changed the width and height.
    And yes, I’ve clear chache
    This is the code:
    <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px" width="1em" height="1em" viewBox="0 0 600 600" xml:space="preserve"> <image overflow="visible" width="2em" height="2em" xlink:href="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAfQAAAH0CAYAAADL1t+KAAAAAXNSR0IArs4c6QAAAAlwSFlzAAAO xAAADsQBlSsOGwAAGyBJREFUeJzt3XuUpHdd5/Hvt6qT6eqBJBACmAsk3Q1KYEEhXDKZHnYCuix4 hMOyishFEFh1vZzl6C67sFy8HFxhDyKusKAGvOAiElgR0SM6ZnoykDh6RBAIdE8mhIsYrkmmqyeZ ru/+EdaQmISZyfPUU931ev0Zznx+v5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tom
    Lead Developer
    Lead Developer

    Hi there,

    That depends on the SVG itself – the viewbox and overall width/height need to be adjusted when creating the SVG.

    #1598816
    Oscar

    Hi Tom, thanks for you response.
    I tell you, the images are worked in PNG format in a size of 500px X 500px.
    In order to use the tool (https://jakearchibald.github.io/svgomg/) I converted these PNG images to SVG (using Adobe Illustrator) and then I used the link generated, but the images are too small.
    Do you think that the best way is to work from scratch the SVG images with a larger size?
    In your experience, what is the right size to work with.

    Thanks for your excellent help Tom.

    #1598992
    Elvin
    Staff
    Customer Support

    You can try resizing the <svg> through CSS instead of its attribute as SVGs automatically scales up or down anyway.

    Say for example you have a markup of something like this:

    <div class="gb-icon">
    <svg> ... </svg>
    </div>

    You should be able to style the <svg> with something like this:

    .gb-icon svg{
    height: 2em;
    width: 2em;
    }

    A wise man once said:
    "Have you cleared your cache?"

    #1620463
    Oscar

    Hi Elvin, thanks for you response.
    I see that it is now possible to control the size of the icons from the panel (Excellent optimization).
    I have managed to add the icons to the site, however I am having a problem with certain icons.
    As you can see, in this page:https://brightled-3d9351.ingress-alpha.easywp.com/servicios/
    Some icons are cropped. The SVG I used are correct and without cuts, the problem is at the time of placing them.
    Could you check and help me finding the reason of this problem?

    #1620735
    Leo
    Staff
    Customer Support

    Did you download the icons from somewhere?

    I actually talked to our designer Mike’s about using the icons.

    His reply was “make sure to outline them though in illustrator or a vector program before adding the svg code to GB icons because icons are usually downloaded as strokes and not fills”

    Hopefully this would help with your issue too.

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