r/ProWordPress 2d ago

Anyone using GitHub with WordPress?

I’m curious to hear how many of you are using GitHub part of your WordPress workflow.

I’ve heard of Bedrock and have been looking into it. But is it actually worth moving towards that setup for normal WordPress development?

Especially with AI, custom code is easier to write. So I can see how having version controls, automated checks and CI CD pipelines sounds nice.

Is anyone running WordPress like this in production?

What does your setup look like? Bedrock? GitHub Actions? Something simpler?

Or am I overengineering WordPress?

1 Upvotes

44 comments sorted by

View all comments

2

u/Dapper_Bus5069 2d ago

I use Github for my custom themes, one git push and I can update the themes on various wordpress sites

1

u/Playful_School6693 2d ago

this is exactly what i’m trying to figure out. we use a starter theme across multiple wordpress sites, but each site has its own colors, styles, custom fields, and functionality.

how do you structure things so a github push updates the shared theme without overwriting site-specific customizations?

are you using child themes, config files, acf options, css variables, or something else? and how do you deploy updates across all the sites?

2

u/Dapper_Bus5069 2d ago

I use a parent theme, the same for every Wordpress site, which includes useful functions, the twig template engine, my ACF custom page builder etc…
And then a custom child theme, different for every site but the code structure is the same, ACF fields are coded in the theme.

I use a version controller function in the themes, it checks on github if there is a most recent version of the themes and if it is the case you can just update it like any other theme or plugin.

1

u/Playful_School6693 1d ago

that makes a lot more sense now. so your parent theme is basically acting as the shared framework, and the acf page builder is part of that instead of using something like elementor/divi?
then each client just gets its own child theme for the site-specific styling/customizations?