Add new page code editor moves and deletes html tags around
-
Hello,
I’m using WordPress 5.4.2. Just started to build a custom page with custom theme. I managed to make Main Page fully working by replacing code of index.php at Theme Editor (Appearance tab). Then I got a problem creating new page with Add new page (Pages tab). What happens is: when I place below Code #1, the builder converts it to below Code #2.
Code #1 – copied:
Title
Paragraph
Paragraph
Code #2 – outcome after update page:
Title
Paragraph
Paragraph
The code editor does move HTML tags around and – what is worst – deletes tags.
Best regards,
PaulPS.
The editor seems to be upgraded – it’s way different from the one I can see on WordPress version 5.1.6. I can’t see no more a left side-bar, there’s only top bar which is also different – specific for the ‘Add new page’. -
Oh… It converted this code into actual HTML. I had no possibility to use “/code” which I can see here in replies. There’s # Code1 and # Code2:
# Code1 – copied and placed:
<main> <grid> <c> <h1>Title</h1> <p>Paragraph</p> </c> <c> <span></span> <a>Kontakt</a> <p>Paragraph</p> </c> </grid> </main># Code2 – outcome after update page:
<main> <grid> <c> <h1>Title</h1> Paragraph <c> <span></span> <a>Kontakt</a></c> Paragraph </c></grid></main>I don’t mind <p> tags, just not closing <c> is critical.
-
Hi there,
Your site is not hosted on WordPress.com, but using the open source WordPress.org software at another hosting provider. We’re only able to help with sites hosted on our servers at WordPress.com.
Please ask the WordPress.org community for advice instead. They provide support for the version of WordPress you’re using:
- The topic ‘Add new page code editor moves and deletes html tags around’ is closed to new replies.