Forums

[resolved] Page editor - puts all html in comment (5 posts)

  1. ericthibeault
    Member
    Posted 1 year ago #

    Hi all,

    I have a problem with the "Write Page" editor. Every time I put any html tag in a page, the resulting page is only showing that text without the proper formatting.

    By checking the source code of that resulting page, I notice that their is two version of that text:
    - One with the text but only with <p> and </ br> tags
    - One with all the html tags initially inserted in the "Write page" editor, but all of this is in html comments.

    Can anybody help me on this one? I've searched alot without finding any solution.

    Thanks in advance.

  2. Otto42
    Moderator
    Posted 1 year ago #

    Perhaps you'd find the solution if you described the problem a little better. I'm not sure what you're asking here.

    The Write Page editor is not expecting you to put in raw HTML code. You can, of course, but it will not come out exactly as you put it in. The editor is expecting text and very minor HTML for formatting that text. It will modify and add other html as needed to make it display properly.

    Basically, it does not expect you to know HTML in detail. It's made for bloggers, not web designers.

  3. ericthibeault
    Member
    Posted 1 year ago #

    Hello Otto42,

    Here is an example of what I've wrote, using only the wysiwyg buttons of Wordpress's Page editor (which are for list and bold, in that case):

    Here is a text in "Html" to test

    • html tags.

    And here is the result in the browser (source code):

    FIRST PART: What we see in the web page
    ---
    <p>Here is a text in “Html” to test</p>

    <p> html tags.</p>

    SECOND PART: What I've wrote in Wordpress' Page editor with his basic html tags (list and bold) - notice the html comment tags.
    ---
    <!--
    <p>Here is a text in “Html” to test</p>

    • html tags.

    -->

    Hope this more detailed explanation will give you more clue about my problem! ;)

    Thanks

  4. Otto42
    Moderator
    Posted 1 year ago #

    Umm... Nothing in WordPress can add comment tags to your code like that. It must be a plugin or something else interfering.

  5. ericthibeault
    Member
    Posted 1 year ago #

    Hi,

    Thanks to Ott42, I found that, by installing "the-excerpt-reloaded" plugin, you need to pass all html tags that you want appearing on your site as parameters to that function.

    Regards.

Topic Closed

This topic has been closed to new replies.

About this Topic