I'm setting up a site for members of a club where anyone can get their own blog, and everyone uses the same theme.
I'd like to set up some default widgets to go with the theme by default. Reasons: language barriers, some computer-challenged members and so on. Would be nice if they don't have to do anything technical and just have it work right out of the box for them.
VentureMaker
Member
Posted 15 years ago #
Hardcode those widgets into theme sidebar :)
Yea that's what I've been doing with some of the stuff elsewhere in the files, the localization didn't take effect on everything everywhere. wp-signup.php is an example.
But how about widgets dependant on some plugin, won't those plugins need to be present and activated? How do I make those active by default? I'm talking maybe 2 or 3 plugins here.
Two options:
If the plugin only is needed while a certain theme is active then include it in your theme's functions.php
If you need the plugin active all the time, then add it to mu-plugins.