WordPress.org

Ready to get started?Download WordPress

Forums

Visual/text to visual/html (14 posts)

  1. WPnew123
    Member
    Posted 11 months ago #

    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

  2. WPnew123
    Member
    Posted 11 months ago #

    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!!

  3. Krishna
    Volunteer Moderator
    Posted 11 months ago #

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

  4. WPnew123
    Member
    Posted 11 months ago #

    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

  5. Krishna
    Volunteer Moderator
    Posted 11 months ago #

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

  6. WPnew123
    Member
    Posted 11 months ago #

    the output result, please.

  7. Krishna
    Volunteer Moderator
    Posted 11 months ago #

    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.

  8. WPnew123
    Member
    Posted 11 months ago #

    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?

  9. Krishna
    Volunteer Moderator
    Posted 11 months ago #

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

  10. WPnew123
    Member
    Posted 11 months ago #

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

  11. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 11 months ago #

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

  12. WPnew123
    Member
    Posted 11 months ago #

    Would you mind to give me more details please?

  13. Andrew Nevins
    Barrel Rider, Spam Zapper & Volunteer Moderator
    Posted 11 months ago #

    Details of what?

  14. WPnew123
    Member
    Posted 11 months ago #

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

Reply

You must log in to post.

About this Topic