Roots Discourse

Approach for site when client won't be using gulp, sass, etc.?

Hi,

I’ve got a site which I’ve developed using Trellis, Sage (8) and Bedrock. I’m using gulp during development, Trellis to deploy (to AWS), etc. and all working great.

The only problem is that the client wants to take on the site after go-live and they’re not particularly techie. This means that they want to update CSS and templates within WordPress admin directly, etc.

I’m thinking of a list of things I’ll have to change so that they can maintain the site going forwards. Currently I’m thinking of:

  • Disable minification of the generated CSS file
  • Allow Plugin and Theme Update and Installation (DISALLOW_FILE_MODS->false)
  • Allow the Plugin and Theme Editor (DISALLOW_FILE_EDIT->false)

If anyone has experience of this then I’d really like to hear how you’ve approached things.

Andy

Your approach seems pretty solid, but I say let them learn. If they can’t see the value you provide as a developer, then let them learn the hard way. You shouldn’t need to bend over backwards to accommodate for their lack of value in your work. And the degree to which they value your work will reflect how much they value their own endeavours.

From, a developer who has found themself in similar situations too often.

1 Like

If you do this in any way, you will end up being responsible for supporting it when they break it on a Friday afternoon.

For clients that want to self-maintain we use beaver builder along with acf and custom post types to balance their ability to update content and have flexibility, while keeping things clean and reliable. This is the right solution.

Plugin and them update installation along with files edits just guarantees the site will get hacked. Having them locked down is one of the greatest benefits of Trellis. It also means random things can get changed without the site being in source control

We always will install plugins for clients for free on any of the sites we host, but they can’t do it them selves because the requests are normally:

  • An unnecessary or scary plugin like a file manager or an additional seo or adwords or youtube or gallery plugin when that functionality already exists and they don’t realise
  • A piece of crap from themeforest that will break and destroy a live site when there is an alternative you can easily recommend and install instead to get them a good result
  • It’s a whole set of new functionality that needs to be through through set up properly and tested, not just dropped on a live site

If they are insistent that they want to play with everything with no knowledge. You should de-bedrock it, hand it over as-is and let them get it installed on their own hosting. Make it clear that it’s not supported as it’s not safe, secure or best-practice.

If a surgeon has a patient that wants to perform procedures on themselves, they don’t help enable it. You don’t want to get involved. If this sounds overly harsh then it’s borne from many weak moments of letting people self-manage when it’s outside their knowledge and skills.

I put this in many of my themes which I built, for the less advance user or SEO guy who want to make some changes without the build process. Then just make sure to create those two empty files and it’s ok.

function vanilla_assets() {
  wp_enqueue_style('theme/css', get_template_directory_uri().'/assets/styles/theme.css', ['sage/css'], null);
  wp_enqueue_script('theme/js', get_template_directory_uri().'/assets/scripts/theme.js', ['jquery', 'sage/js'], null, true);
}
add_action('wp_enqueue_scripts', __NAMESPACE__ . '\\vanilla_assets', 110);

Thanks for the reply on this - sorry for not acknowledging sooner!

Hi Keshy - thanks for this suggestion and I did actually use this on the site.