• WPnew123

    (@wpnew123)


    Hi,

    I just downloaded and installed WP 3.5.1 for the first time, and was trying to type some html code but can’t switch visual/text to visual/html

    I’m trying to write some html5 code contains inline svg code and trying to upload js and css file.

    Please help

Viewing 13 replies - 1 through 13 (of 13 total)
  • Thread Starter WPnew123

    (@wpnew123)

    I found the solution of the first part: the word “html” was a misleading so they changed it to “text” in the new version but it has the same function.

    I do need some help on how to copy/paste some html5 code from my old site to WP.

    Any advice!!

    Krishna

    (@1nexus)

    Did you try using the Text editor? What problem do you find?

    Thread Starter WPnew123

    (@wpnew123)

    yes, it tried to add code like this and got nothing:

    <svg xmlns="http://www.w3.org/2000/svg" version="1.1">
      <circle cx="100" cy="50" r="40" stroke="black"
      stroke-width="2" fill="red"/>
    </svg>

    please advice

    Krishna

    (@1nexus)

    Do you want it to appear as shown above or output result?

    Thread Starter WPnew123

    (@wpnew123)

    the output result, please.

    Krishna

    (@1nexus)

    There is no text that you want to output in that code. If you have text, WordPress will mostly strip the coding and convert it to text that you can use in the normal way.

    Thread Starter WPnew123

    (@wpnew123)

    I want to show that shape in the page, but when i paste that code I got nothing! i.e how to use html5 code o show something?

    Krishna

    (@1nexus)

    Use CSS instead.
    Try: http://www.w3schools.com/

    Thread Starter WPnew123

    (@wpnew123)

    Thanks for your advice, but It was just a simple example of my site but I have to use more complex svg code!

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Try using a JavaScript library to append the more complex svg code onto your document.

    Thread Starter WPnew123

    (@wpnew123)

    Would you mind to give me more details please?

    Andrew Nevins

    (@anevins)

    WCLDN 2018 Contributor | Volunteer support

    Details of what?

    Thread Starter WPnew123

    (@wpnew123)

    Thanks for your help, i’ll use iframe to load the page as it is.

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

The topic ‘Visual/text to visual/html’ is closed to new replies.