PuckPedia Connector

PuckPedia Connector

PuckPedia Connector is a tool that allows you to easily enhance the content of your hockey website's content with inline player and team data supplied by PuckPedia.


In an unprecedented 2020 NHL season, the Tampa Bay Lightning defeated the Dallas Stars to win the Stanley Cup in Edmonton, home of the Edmonton Oilers. With 34 points, Nikita Kucherov lead the league in playoff scoring, while Victor Hedman won the Conn Smythe Trophy as playoff MVP.

After being eliminated in the play-in round, the New York Rangers won the draft lottery and selected Alexis Lafreniere with the first overall pick in the entry draft.

In the early part of the 2021 season, Connor McDavid and Leon Draisaitl have started at a torrid pace and lead the league again in scoring.

Option 1: Use on a WordPress site

WordPress logo

Download the PuckPedia Connector WordPress Plug-In

Simplify the installation of the PuckPedia Connector by installing this WordPress plugin. Download and unzip this file, and then upload it to your wp-content/plugins folder. You can now enable and configure the PuckPedia Connector settings. See option 2 for details on available configuration options..

Option 2: Use on another site (if you can edit the page template

Add the following lines just before </head> in your page header template.

<link rel="stylesheet" href="https://puckpedia.com/connector/styles" />
<script src="https://puckpedia.com/connector/script" defer></script>

You can also add configuration options in an additional <script> tag above those lines.

  var ppOptions = {
    targetSelector: ".content",
    scope: "all",
    linkMode: "popup",
    linkTarget: "_blank",

targetSelector is a CSS selector for the wrapper element that contains your article content. It is recommended to set this to a value specific to your site rather than using the default and to be as specific with your selector as possible. Using the default value may cause unexpected results and break the display of elements on your page. See: https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Selectors. Default: "body p" (or ".entry-content p" for the WordPress plug-in).

scope is whether popovers or links should be created for players, teams, or all. Valid options are "all", "players", or "teams". Default: "all".

linkMode is whether to insert popovers or simple links to PuckPedia.com. Valid options are "popup" or "link". Default: "popup".

linkTarget is the HTML target attribute for link elements. "_blank" will open links in a new tab, and "_self" will open them in the current tab. See: https://developer.mozilla.org/en-us/docs/Web/HTML/Element/a#attributes. "Default: _blank".       

pathPattern is a regular expression to match against to determine whether or not to do name replacements on a page. Omit this option to enable on all pages. Example: /^\/article\// will match any path that starts with /article/. See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/match

Option 3: If you can't use either of these options

You can use our Connector Link Maker tool to add simple links to your HTML content prior to publishing. Copy your HTML code and paste in one box, hit a button, and copy and paste the revised code back to your content. Be sure to keep a copy of your original text and test the PuckPedia linked content to ensure it formats correctly on your site before publishing. PuckPedia is not responsible for data loss resulting from use of this tool.

Not seeing names linked as you expect?

To identify possible names in your content, our script is looking for multiple capitalized words in succession. In most cases this works well, but if a player's name has additional capitalized words before or after it, we may have trouble picking out the name.