Styling the Plugin’s Displays

More or less complete control of the graphic design of the coaching staff tables, the single coach’s profile pages, and the coaches gallery pages may be obtained by editing the plugin’s style sheet /css/mstw-cs-styles.css. Depending on your theme, it may also be necessary to edit the single-coach.php and taxonomy-staffs.php templates to get everything to ‘fit’ just right.

Out of the box, the default stylesheet rules in mstw-cs-styles.css control the displays. If you don’t want to mess around editing the stylesheet, significant control of the displays is provided through the Display Settings admin screen. NOTE that the admin page settings will override the corresponding styles in the mstw-cs-stylse.css stylesheet.

Finally, the plugin supports rules specific to individual staffs. For example, all coaching staff tables are in a .mstw-cs-table class, which is styled by the default rules, but each table is also in a .mstw-cs-table-team-slug class, which can be styled more specifically for individual staffs. Because they are more specific than the ‘generic’ rules and the rules generated by the display settings, they take precedence over both in “the cascade” of CSS rules.

Combining the above techniques, significant graphic design control of all plugin output can be achieved, as shown on my MSTW Plugin Development Site.

Shortcode Example #1

Coaches Gallery