-
Notifications
You must be signed in to change notification settings - Fork 11
Widget Display
Ben Gillbanks edited this page Sep 7, 2019
·
6 revisions
Use the widget display settings to set when which pages widgets should appear on.
The display settings uses a custom rules box where you can enter a set of rules that define when rules should appear.
- Each widget can have multiple rules.
- The rules are tested in order. As soon as a rule is positive the checks stop and the widget is displayed.
- If no rules are true the widget will be hidden.
- If there are no rules the widget will be displayed.
The rules are structured in the format as CSS properties. A name, optionally followed by a colon and then comma separated parameters, ending with a semicolon.
If there's a single rule then you don't need the semicolon.
-
homeDisplay on the homepage. No parameters. -
singleDisplay on any singular post type. Posts, pages, and any custom post types. The parameters can contain a list of ids to restrict the display to pages with those ids. -
archiveDisplay on any archive page. -
postTypeDisplay on pages with the specified post type. The parameters should be a list of post types.
-
homeOnly display on the homepage. -
home; archiveDisplay on the homepage and archive pages. -
postType: postDisplay on single posts and post archives. Not pages.
Toolbelt is built by Ben from Pro Theme Design.