Article directory
How can I ensure that the article layout and style are correct when pasting WordPress content into the WeChat Official Accounts editor?
Some companies use WordPress to build their official websites for WeChat official account promotion . However, when copying WordPress articles and pasting them into the WeChat official account editor, code incompatibility between the two editors occurs, causing problems such as paragraph and style misalignment.
For example: Originally, in the WordPress editor, you used p to use br tags to make empty lines. If you copy it directly to the WeChat official account editor, there will be no empty lines. You need to press the Enter key to add empty lines. OK, if the article is very long and there are many blank lines, it is very time-consuming and laborious. What should I do?
installationMarkdown herePlugin
- installationMarkdown herePlug-in method, please refer to this article for details:https://www.chenweiliang.com/cwl-471.html
Stop automatic removal of p and br tags
First, you must first have your WordPress editor stop automatically stripping p and br tags.
- WordPress enables the tinymce-advanced plugin.
- Paragraph tags must be preserved to stop the WordPress editor from stripping p and br tags:In the tinymce-advanced plugin settings, check the "Advanced Options" → "Keep paragraph tags" option.
Copy the WP article and paste it into the WeChat public account
Please make sure WordPress has enabled the tinymce-advanced plugin and set to retain paragraph tags before proceeding with the following process.
- Switch the WordPress editor to the "text" code state.
- Copy the html code of the article.
- Open the online editor wangEditor:http://www.wangeditor.com/
- Click the wangEditor "Insert Code" button.
- Paste the html code of the article into wangEditor.
- Click "Insert" to insert the html code.
- Press the shortcut key Shift + Alt + M one-key Markdown.
- In wangEditor, copy the Markdown article.
- Paste it into the WeChat official account editor.
- Click the "Save" button of the WeChat Official Account.
Using the method shared by Chen Weiliang , you can copy a WordPress post, paste it into the WeChat Official Account editor, and quickly achieve "retaining the WordPress post layout style in WeChat Official Account" in just a few dozen seconds. Isn't it awesome to have such a powerful tool for WeChat marketing writing? Haha ^_^
Hopefully, the article "How to ensure correct article layout when pasting WordPress content into the WeChat Official Account editor?" shared on Chen Weiliang's blog ( https://www.chenweiliang.com/ ) will be helpful to you.
Feel free to share this article's link: https://www.chenweiliang.com/cwl-479.html
