I would love to know what is your workflow when creating new post or pages.

Do you edit the html and css of your pages and posts in local dev environment and push it to the production site?

What is your method?

I am asking this because I want to add version control to my workflow.

Any link or hint is appreachiated.

  • 1
    Why would you need to edit HTML and CSS files every time you create a post in WordPress?
    – swissspidy
    Commented Jan 24, 2018 at 13:33
  • Think about custom landing pages.
    – Bar6
    Commented Jan 26, 2018 at 21:23
  • Wouldn't a Page Builder be easier to manage than custom HTML/CSS?
    – Howdy_McGee
    Commented Jan 26, 2018 at 21:34
  • To a degree maybe. It is just hard to replicate a page while clicking through all the options. Easier would be to do it in html and css it think.
    – Bar6
    Commented Jan 26, 2018 at 22:05

1 Answer 1


The easiest way to have custom HTML per post is probably by using post type templates. You can easily put those into version control.

As for the CSS, you could create separate files per post as well. But this harder to maintain and leads to more stylesheets that need to be downloaded by the user when they browse your site. I'd usually put all the different styles into one CSS file. This way, the browser only needs to download it once and then it will be cached.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.