This is what happens.

I have WPBakery editor on my wordpress site. When I go to 'Edit Post' and paste custom HTML code (adjusted to WPBakery tags) and publish that post everything looks correct. But, when I add new post with Wordpress REST API, through pythons requests library, some parts of web page are moved a bit e.g. list title has 30 px top padding added.. Even weirder is when I click 'Edit Post' for that page and only click 'Update', without changing anything.. updated page looks ok, without any distortion.

Do you have any idea what may be causing such weird behavior? Any suggestion on what to check would be appreciated.

  • Can you add links to compare? – Himad May 23 at 0:23
  • Does your markup match the markup added by WPBakery exactly? If the WP Bakery lists have a certain class, but the list you're adding with the REST API do not, then they might not match visually. This is not a problem with the REST API. – Jacob Peattie May 23 at 6:19

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.