Skip to main content

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**.

Updated today

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 than 0. Set it to 0 to 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 than 0. Set it to 0 to 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

sportspress_header_sponsors_limit

3

Number of sponsors to show in the header. Set to 0 to disable.

Sort by

sportspress_header_sponsors_orderby

menu_order

Sort method: Menu Order, Date, Name, or Random.

Sort Order

sportspress_header_sponsors_order

ASC

Ascending or Descending.

Logo — Max Width

sportspress_header_sponsor_width

128

Maximum logo width in pixels.

Logo — Max Height

sportspress_header_sponsor_height

64

Maximum logo height in pixels.

Position — Top

sportspress_header_sponsors_top

10

Top margin in pixels, applied as inline CSS margin-top.

Position — Right

sportspress_header_sponsors_right

10

Right margin in pixels, applied as inline CSS margin-right.

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).

Setting

Option ID

Default

Description

Title

sportspress_footer_sponsors_title

(empty)

Optional heading text displayed above the footer sponsor logos.

Display

sportspress_footer_sponsors_limit

20

Number of sponsors to show in the footer. Set to 0 to disable.

Sort by

sportspress_footer_sponsors_orderby

menu_order

Sort method: Menu Order, Date, Name, or Random.

Sort Order

sportspress_footer_sponsors_order

ASC

Ascending or Descending.

Logo — Max Width

sportspress_footer_sponsor_width

256

Maximum logo width in pixels.

Logo — Max Height

sportspress_footer_sponsor_height

128

Maximum logo height in pixels.

Text Color

sportspress_footer_sponsors_css_text

#363f48

Color applied to the title text and sponsor name text in the footer area.

Background Color

sportspress_footer_sponsors_css_background

#f4f4f4

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.

Did this answer your question?