In this post, I show you how you can easily add Flash games on your WordPress web page. Google ‘embed flash games', and from the list of results should be some website's offering flash games you can embed on any web page that allows HTML or WordPress.
Get the Flash Game Embed Code
So I found some embedable Flash games at http://www.addictinggames.com/embeddable-games/index.jsp. If you click on this link you will see some games you can embed. Like most sites that offer embedable Flash games, the embed code is pretty easy to find, just click the 'Embed' button.
After pressing the 'Embed' button, a code snippet will appear. Copy the entire code snippet.
Insert the Flash game(s) embed code into your WordPress page
- Log into WordPress admin.
- Click on the 'Pages' button.
- Click on the page you want to add the game to.
- Select the 'HTML' tab.
- Paste (Ctrl-v) the Flash game code snippet into the content area.
- Click the 'Publish' button.
Note: Not all custom WordPress themes are compatible with embedable Flash games. If your WordPress theme isn't displaying the Embed game at the right dimensions you will have to add a style the '<object>' tag redefining the correct width and height
Javascript | | copy code | | ? |
1 | style="height:480px;width:680px;" |
Example
Here's an example of a flash game embed code from mad4flash.com:
Javascript | | copy code | | ? |
1 | <a href="http://www.mad4flash.com">Flash Games and Embed Code</a> |
2 | <object width="640" height="480" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,40,0"><param name="src" value="http://www.mad4flash.com/games/easter-avenger-ex-hacked.swf" /><embed width="640" height="480" type="application/x-shockwave-flash" src="http://www.mad4flash.com/games/easter-avenger-ex-hacked.swf" /></object> |
3 | <a href="http://www.mad4flash.com">Flash Games and Embed Code</a> |
Embeding this code on your WordPress page will generate the game below: