• I want put code of svg in wordpress post, from post print svg(image) and code svg using the_content();
    How can i get this?!

Viewing 3 replies - 1 through 3 (of 3 total)
  • Question is not clear…

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Hi @apollo789, could you explain in more detail the problem you’re facing?

    Thread Starter apollo789

    (@apollo789)

    i made this:

    <img class="alignnone wp-image-186" src="../svg-icons-1.svg" alt="" width="283" height="226" />
    
    <?xml version="1.0" encoding="utf-8"?>
    <!-- Generator: Adobe Illustrator 22.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
    <svg version="1.1" id="facebook-wrap" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
    y="0px" viewBox="0 0 1280 1024" style="enable-background:new 0 0 1280 1024;" xml:space="preserve">
    <style type="text/css">
    .st0{fill:#969696;}
    .st1{fill:#F0F0F0;}
    </style>
    <g>
    <path class="st0" d="M120.1-119.4h1143.4V1024H120.1V-119.4z"/>
    <path class="st1" d="M750.9,1024c-2.9-443.5,0-452.2,0-452.2h-97.9V407.7h97.9c-1.4-4.6-1.7-162.1,0-167
    C786,139.6,873.3,98.1,889.1,90.9c73.4-11.5,143.7-12.1,210.2,0v167L998.5,255c-32.3,9.5-49,26.2-50.4,50.4l-1.4,96.5l152.6-2.9
    V569H949.6v455H750.9"/>
    </g>
    </svg>
    

    but i want:

    
    <?xml version=”1.0″ encoding=”utf-8″?>
    <!– Generator: Adobe Illustrator 22.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) –>
    <svg version=”1.1″ id=”facebook-wrap” xmlns=”http://www.w3.org/2000/svg” xmlns:xlink=”http://www.w3.org/1999/xlink” x=”0px”
    y=”0px” viewBox=”0 0 1280 1024″ style=”enable-background:new 0 0 1280 1024;” xml:space=”preserve”>
    <style type=”text/css”>
    .st0{fill:#969696;}
    .st1{fill:#F0F0F0;}
    </style>
    <g>
    <path class=”st0″ d=”M120.1-119.4h1143.4V1024H120.1V-119.4z”/>
    <path class=”st1″ d=”M750.9,1024c-2.9-443.5,0-452.2,0-452.2h-97.9V407.7h97.9c-1.4-4.6-1.7-162.1,0-167
    C786,139.6,873.3,98.1,889.1,90.9c73.4-11.5,143.7-12.1,210.2,0v167L998.5,255c-32.3,9.5-49,26.2-50.4,50.4l-1.4,96.5l152.6-2.9
    V569H949.6v455H750.9″/>
    </g>
    </svg>
    
    <?xml version="1.0" encoding="utf-8"?>
    <!-- Generator: Adobe Illustrator 22.0.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
    <svg version="1.1" id="facebook-wrap" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px"
    y="0px" viewBox="0 0 1280 1024" style="enable-background:new 0 0 1280 1024;" xml:space="preserve">
    <style type="text/css">
    .st0{fill:#969696;}
    .st1{fill:#F0F0F0;}
    </style>
    <g>
    <path class="st0" d="M120.1-119.4h1143.4V1024H120.1V-119.4z"/>
    <path class="st1" d="M750.9,1024c-2.9-443.5,0-452.2,0-452.2h-97.9V407.7h97.9c-1.4-4.6-1.7-162.1,0-167
    C786,139.6,873.3,98.1,889.1,90.9c73.4-11.5,143.7-12.1,210.2,0v167L998.5,255c-32.3,9.5-49,26.2-50.4,50.4l-1.4,96.5l152.6-2.9
    V569H949.6v455H750.9"/>
    </g>
    </svg>

    showing svg picture + code + secure/safe

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

The topic ‘svg in posts’ is closed to new replies.