February 20, 2014 at 12:54 am
#4976
Keymaster
Just have no idea what to put into functions, and consequently which bits to put into the text widget?
On your child-theme’s functions.php you could add the script like this
function script_to_header() {
?>
<script type="text/javascript" src="http://example.com/swfobject.js"></script>
<script type="text/javascript">
var flashvars = {};
var params = {};
params.play = "true";
params.loop = "true";
params.menu = "false";
params.quality = "best";
params.scale = "exactfit";
params.wmode = "transparent";
var attributes = {};
attributes.align = "left";
swfobject.embedSWF("http://example.com/flash.swf", "mbmscrollbar", "900", "40", "9.0.0", "http://example.com/expressInstall.swf", flashvars, params, attributes);
</script>
<?php
}
add_action( 'wp_head', 'script_to_header' );
On the text widget:
<div id="mbmscrollbar">
<a href="http://www.adobe.com/go/getflashplayer">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
</div>
For the CSS
#below-menu #widgets-wrap-below-menu {padding: 0;}
#below-menu .widget-below-menu {margin: 0;}