WP Manifestindependent plugin directory
manifest / developer / sweet-widget-templates

Sweet Widget Templates

A suite of WordPress widgets & tools for developers.

by Jonathan Daggerhart · github.com/daggerhart/sweet-widget-templates · website

7stars
1forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/daggerhart/sweet-widget-templates/archive/refs/heads/master.zip

Declares an update source (https://github.com/daggerhart/sweet-widget-templates), so updates arrive through the plugin's own updater.

From the readme

Sweet Widget Templates Provides a simple templating system for WordPress Widgets that include 2 main features: 1. A Template Hierarchy for Widgets 2. Ability to select a custom template for individual widgets on the admin dashboard. This plugin expects your theme to contain a folder named widgets. Place your widget templates into that folder. To change the name of this folder, see the sweetwidgetstemplates-folder filter. Widget Template Hierarchy When a widget is being rendered this plugin looks for an appropriate template in the active theme. If no appropriate template is found the widget will appear as it would normally, according to the details of registersidebar() implementations. Custom Template Per Widget When editing a Widget you can choose for a list of all templates found in the theme. Example use of the Sweet Widgets Template Hierarchy Examples using a Sidebar with the ID of "sidebar-1", and a Widget with the ID of "text-6". Description | Pattern | Example ---|---|--- Specific widget in specific sidebar. | {sidebar-id}--{widget-id} | sidebar-1--text-6.php Any widget in a specific sidebar. | {sidebar-id}--default | sidebar-1--default.php Specific widget in any si

Read the full README on GitHub →