WordPress Code Editor Problems with HTML coding
-
When I enter HTML code into the WordPress Code Editor, it is partially deleted automatically or not recognized at all. If I enter a comment medium , it will not be recognized as a comment.
Then I still have a blank line in the code that I cannot delete. If I inspect the program code with Morzilla, I see that WordPress has insertedthere. But I don’t see that in my code. There it is shown as a blank line that I cannot delete.
Thanks in advance Michael -
The HTML code you can put in a free wordpress.com website is very limited, https://wordpress.com/support/code/
-
-
Hi there,
What is the code you’re trying to use? Type it here between backticks and it should show us the actual code.
Are you trying to manually modify the HTML of your post? If so, you’ll only be able to use HTML that 1) is allowed on WordPress.com in general, and 2) is allowed inside the specific block you’re modifying.
If you want to add custom HTML content to a post or page, it’s better to use the custom HTML block for that purpose, rather than the code editor view of the editor.
And if you’re trying to post source code so the code itself is visible on your site, you want to use the Code block for that:
-
Many thanks,
now I insert the following code in the function.php and it Works well.
remove_filter( ‘the_content’, ‘wpautop’ );
remove_filter( ‘the_excerpt’, ‘wpautop’ );
Problem is solide. -
Hi @mschulz876
For future reference, it is not possible to edit functions.php on WordPress.com (unless you have purchased our WordPress.com Business Plan upgrade)
With that in mind The site that you are referring to appears to be a self-hosted WordPress (also called “.org”) site hosted on an outside web hosting company Web Hosting, and not a site hosted on our WordPress.com service.
To clarify, we are not the only providers of WordPress sites, and an outside web hosting company also happens to offer WordPress sites, but they use a different version of the platform than what we use here. Because of this we are not able to help with your issue as it lies outside of our system. See http://support.wordpress.com/com-vs-org/ for more info.
For future issues you have we will not be able to help, but you can find support for your self-hosted WordPress site here: https://wordpress.org/support/forums/
You may also wish to contact your host’s support team for more assistance as they may also offer in-house support for their WordPress users.
Hope that points you in the right direction!
-
I meant the function.php of the Theme. The problem was caused by WordPress, namely that a blank line <p> </p> was repeatedly inserted in the code editor, which was only visible as a blank line, but not <p> </p>.
With the Mozilla browser I looked at the program code and found these additional <p> </p> entries.
- The topic ‘WordPress Code Editor Problems with HTML coding’ is closed to new replies.