Header and Footer Sponsor Display
The Sponsors module can automatically inject sponsor logos into your site's header and footer areas without requiring shortcode placement. Both sections are configured under SportsPress → Settings → Sponsors.
This feature is part of SportsPress Pro.
Enabling or Disabling Each Section
Header — The header sponsor area is active when Display (option ID:
sportspress_header_sponsors_limit) is set to a value greater than0. Set it to0to disable the header sponsors entirely.Footer — The footer sponsor area is active when Display (option ID:
sportspress_footer_sponsors_limit) is set to a value greater than0. Set it to0to disable the footer sponsors entirely.
Both sections default to showing sponsors (header default: 3, footer default: 20).
Header Settings
Setting | Option ID | Default | Description |
Display |
|
| Number of sponsors to show in the header. Set to |
Sort by |
|
| Sort method: Menu Order, Date, Name, or Random. |
Sort Order |
|
| Ascending or Descending. |
Logo — Max Width |
|
| Maximum logo width in pixels. |
Logo — Max Height |
|
| Maximum logo height in pixels. |
Position — Top |
|
| Top margin in pixels, applied as inline CSS |
Position — Right |
|
| Right margin in pixels, applied as inline CSS |
The header sponsors are injected via a wp_footer action and moved into the .sp-header element using jQuery. The CSS selector used for placement can be changed with the sportspress_header_sponsors_selector filter (default: .sp-header).
Footer Settings
Setting | Option ID | Default | Description |
Title |
| (empty) | Optional heading text displayed above the footer sponsor logos. |
Display |
|
| Number of sponsors to show in the footer. Set to |
Sort by |
|
| Sort method: Menu Order, Date, Name, or Random. |
Sort Order |
|
| Ascending or Descending. |
Logo — Max Width |
|
| Maximum logo width in pixels. |
Logo — Max Height |
|
| Maximum logo height in pixels. |
Text Color |
|
| Color applied to the title text and sponsor name text in the footer area. |
Background Color |
|
| Background color for the footer sponsor container. |
The footer sponsors are injected via the get_footer action hook and rendered inside a <div class="sp-footer-sponsors"> element.
How the Display Works
Both sections internally call the [sponsors] shortcode with the configured limit, dimensions, sort options, and title. The header and footer displays respect the same level filtering as the shortcode if you pass a level ID through the shortcode, but the automatic header/footer display does not filter by level — it shows sponsors from all levels.
