Soccer Widgets

Soccer Widgets

The most popular sport on earth is undoubtedly soccer (better know as European football). With many leagues all over the world, major international tournaments and sponsorship deals, soccer enjoys a huge fan base always avid of new information, results and statistics.

WidgetLab.net lists below a range of widget codes that can be implemented into any website to deliver free and updated soccer info ⚽, results and stats, available in 16 languages.

Recommendation: do not include more than one widget in a page or you risk to slow your website.

ONE IMPLEMENTATION

You implement the widget code one time and we take care of the rest. The content gets updated automatically, no other coding and changes afterwards.

FREE FOREVER

The content provided is free to implement. Getting this from other sources will require to pay for access to their services along with any development work.

SEO BEST

It can also improve your SEO work as content will be seen as originating on your website. Search engines will index the content and rank your pages for it.

Top Scorers by Competition

To show the top goal scorers by soccer competition, you can copy and paste below widget code in your webpage, where you wish the top scorers table to appear (select your implementation platform):

.PHP Files.HTML / .HTM FilesWordpressJoomla

1. Copy below widget code in a Notepad file

<div><?php
$html = "";
$url = "http://widget.widgetlab.net/soccer/data/topscorers-YYYYYY.xml";
$xml = simplexml_load_file($url);
$description = $xml->channel->item->description;
$html .= "$description";
echo $html;
?></div>

2. Edit the parameter YYYYYY in the URL source on line 3 of the code, with one of the parameters you want, listed in Parameters table below

3. Paste the edited code in your .PHP webpage of your website, where you wish the widget to appear.

4. Visit your website and see how the widget shows the top scorers table

1. Copy below widget code in a Notepad file

<div><?php
$html = "";
$url = "http://widget.widgetlab.net/soccer/data/topscorers-YYYYYY.xml";
$xml = simplexml_load_file($url);
$description = $xml->channel->item->description;
$html .= "$description";
echo $html;
?></div>

2. Edit the parameter YYYYYY in the URL source on line 3 of the code, with one of the parameters you want, listed in Parameters table below

3. Paste the edited code in your .HTML / .HTM webpage of your website, where you wish the widget to appear.

4. As HTML/HTML files do not natively run PHP code, you need to add the following code line in the .htaccess file from the route of your website

AddType application/x-httpd-php .html .htm

If there is no file, you can create one. The .htaccess code may be different from a web hosting to another, so in case above code does not work, please view your hosting FAQ or contact their support and ask for correct .htaccess settings to run PHP code in HTML/HTM files

5. Visit your website and see how the widget shows the top scorers table

1. If you are using WordPress as the platform of your website, you need to install a plugin like Woody code snippets that can run the php code in your WordPress posts/pages

2. After installing above WP plugin, go to PHP Snippets section from your WordPress admin, and create a New snippet.

3. Copy the code below in the snippet code area

$html = "";
$url = "http://widget.widgetlab.net/soccer/data/topscorers-YYYYYY.xml";
$xml = simplexml_load_file($url);
$description = $xml->channel->item->description;
$html .= "$description";
echo $html;

4. Edit the parameter YYYYYY in the URL source on line 3 of the code, with one of the parameters you want, listed in Parameters table below

5. Hit “Publish” button to save & publish the snippet.

6. Copy the Snippet shortcode shown in the PHP Snippet section (under the form of “\[wbcr_php_snippet]: PHP snippets error (not passed the snippet ID)“). Paste the shortcode in your WP post, where you wish the data to appear.

7. Visit your website and see how the widget shows the top scorers table

1. If you are using Joomla as the platform of your website, you need to install an extension like Sourcerer that can run the php code in your Joomla articles

2. After installing above Joomla extension, copy the code below in a Notepad file

{source}<div><?php
$html = "";
$url = "http://widget.widgetlab.net/soccer/data/topscorers-YYYYYY.xml";
$xml = simplexml_load_file($url);
$description = $xml->channel->item->description;
$html .= "$description";
echo $html;
?></div>{/source}

3. Edit the parameter YYYYYY in the URL source on line 3 of the code, with one of the parameters you want, listed in Parameters table below

4. On line 5, edit the value 10 with the max number of match results you want returned in the widget. Preferably to return a number of games equal with half the number of league teams.

5. Paste the edited shortcode in your Joomla article, where you wish the data to appear.

6. Visit your website and see how the widget shows the top scorers table

Parameters: Top Scorers

Edit YYYYYY with:

  • Premier League England – england
  • La Liga Spain – spain
  • Bundesliga Germany – germany
  • Serie A Italy – italy
  • Ligue 1 France – france
  • Pro League Belgium – belgium
  • Eredivisie Netherlands – netherlands
  • Bundesliga Austria – austria
  • Super League Switzerland – switzerland
  • Liga Portugal – portugal
  • Allsvenskan Sweden – sweden
  • Super Liga Denmark – denmark
  • Eliteserien Norway – norway
  • Veikkausliiga Finland – finland
  • NB I Hungary – hungary
  • Ekstraklasa Poland – poland
  • Premier League Russia – russia
  • Liga I Romania – romania
  • Meistriliiga Estonia – estonia
  • Liga Czech Rep – czechia
  • Serie A Brazil – brazil

Rankings by Soccer Competition

To show latest table rankings by soccer competition, you can copy and paste the widget code generated on SoccerStats247 Widgets page, where you wish the rankings to appear (select your implementation platform):

.PHP Files.HTML / .HTM FilesWordpressJoomla

1. Visit the SoccerStats247 widgets page and make these selections in the Generator: Language > Rankings > Competition (country, competition name) > and stage of competition. Click the button “Generate”

2. Copy the widget code as it is.

3. Paste the widget code in your .PHP webpage of your website, where you wish the widget to appear.

4. Visit your website and see how the widget shows the latest competition rankings table.

1. Visit the SoccerStats247 widgets page and make these selections in the Generator: Language > Rankings > Competition (country, competition name) > and stage of competition. Click the button “Generate”

2. Copy the widget code as it is.

3. Paste the edited code in your .HTML / .HTM webpage of your website, where you wish the widget to appear.

4. As HTML/HTML files do not natively run PHP code, you need to add the following code line in the .htaccess file from the route of your website

AddType application/x-httpd-php .html .htm

If there is no file, you can create one. The .htaccess code may be different from a web hosting to another, so in case above code does not work, please view your hosting FAQ or contact their support and ask for correct .htaccess settings to run PHP code in HTML/HTM files

5. Visit your website and see how the widget shows the latest league match results

1. If you are using WordPress as the platform of your website, you need to install the plugin Soccer Widgets – you can generate shortcodes for football competitions.

PS: For Football Rankings & Competition Results you can download directly the Soccer Widgets plugin, install it in your WordPress, generate shortcodes for the competitions you are interested and paste the shortcode in the post/page where you want the data to appear.

2. After installing above WP plugin, visit the Soccer Widgets menu available in the left sidebar in WP Admin and select Language > Rankings widgets page and make these selections in the Generator: Language > Rankings > Competition (country, competition name) > and stage of competition. Click the button “Generate”

3. Copy the widget shortcode and Paste it in your WP post, where you wish the data to appear.

4. Visit your website and see how the widget shows the latest league match results

1. If you are using Joomla as the platform of your website, you need to install an extension like Sourcerer that can run the php code in your Joomla articles

2. After installing above Joomla extension, visit the SoccerStats247 widgets page and make these selections in the Generator: Language > Rankings > Competition (country, competition name) > and stage of competition. Click the button “Generate”

3. Copy the widget code as it is in a Notepad file. Edit the code accordingly to the Joomla extension (requires changing adding at the before the code “{source}” and at the end of the code “{/source}”)

4. Paste the edited shortcode in your Joomla article, where you wish the data to appear.

6. Visit your website and see how the widget shows the latest league table rankings

Rankings Simplified by Soccer Competition

To show latest table rankings (simplified version – ideal for Sidebar implementations) by soccer competition, you can copy and paste the widget code generated on SoccerStats247 Widgets page, where you wish the rankings to appear.

Check the Rankings by Soccer Competition guide for step by step guidelines. Simply select the “Rankings Simplified” in the generator.

Rankings w Form by Soccer Competition

To show latest table rankings (with Form for each team – requires a page implementation as the table is larger) by soccer competition, you can copy and paste the widget code generated on SoccerStats247 Widgets page, where you wish the rankings to appear.

Check the Rankings by Soccer Competition guide for step by step guidelines. Simply select the “Rankings w Form” in the generator.

Match Results by Soccer Competition

To show latest match results by soccer competition, you can copy and paste the widget code generated on SoccerStats247 Widgets page, where you wish the rankings to appear.

Check the Rankings by Soccer Competition guide for step by step guidelines. Simply select the “Match Results” in the generator.

Team Stats Widget

To show latest team stats for any particular soccer team, you can copy and paste the widget code generated on SoccerStats247 Widgets page, where you wish the stats table to appear.

Check the Top Scorers by Soccer Competition guide for step by step guidelines on using implementing the code. Generate the appropriate “Team Stats” widget code on SoccerStats247.com.

Team Squad Widget

To show latest team squad and stats for any particular soccer team, you can copy and paste the widget code generated on SoccerStats247 Widgets page, where you wish the squad table to appear.

Check the Rankings by Soccer Competition guide for step by step guidelines. Simply select the “Team Squad” in the generator.

Team Matches Widget

To show latest 5 team matches & results for any particular soccer team, you can copy and paste the widget code generated on SoccerStats247 Widgets page, where you wish the squad table to appear.

Check the Top Scorers by Soccer Competition guide for step by step guidelines on using implementing the code. Generate the appropriate “Team Matches” widget code on SoccerStats247.com.

Match Probabilities by Soccer Competition

To show match probabilities by soccer competition (or you can call them betting tips based on mathematical calculations), you can copy and paste the widget code generated on SoccerStats247 Widgets page, where you wish the match probabilities to appear. You may also be interested in Betting Odds widgets for implementation.

Check the Top Scorers by Soccer Competition guide for step by step guidelines on using implementing the code. Generate the appropriate “Match Probabilities” widget code on SoccerStats247.com.

Data widgets available in this page are provided by SoccerStats247.com