Version control when creating a page or post with

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.

Topic workflow Wordpress

Category Web


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.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.