Support » How-To and Troubleshooting » Center align flash header

Center align flash header

  • Hi
    I am using the Dynamic Headers plugin to put a flash swf file in my header. I am using a Thematic child theme.
    But the swf file will only left align and I can’t find a way to get it to center align over the menu and content.
    I think I have to put some code into the style.css but cannot seem to get anything to work.
    Can anyone please help?

    Here is the page as it looks now: http://markgraphic.notaplan.dk/

Viewing 6 replies - 1 through 6 (of 6 total)
  • Try wrapping your flash swf in a div as follows:

    <div style="text-align:center;">
    <object width="1024" height="232" align="middle" id="mediaHeader" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000">
    <param value="sameDomain" name="allowScriptAccess">
    <param value="false" name="allowFullScreen">
    <param value="transparent" name="wmode">
    <param value="http://markgraphic.notaplan.dk/wp-content/header-images/notaplan_header.swf" name="movie"><param value="high" name="quality"><param value="#ffffff" name="bgcolor">
    <embed width="1024" height="232" align="middle" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" allowfullscreen="false" allowscriptaccess="sameDomain" name="mediaHeader" bgcolor="#ffffff" quality="high" wmode="transparent" src="http://markgraphic.notaplan.dk/wp-content/header-images/notaplan_header.swf">


    So I put this code into my style.css? And do I still use the Dynamic Headers plugin or is this done without that?

    Thanks again

    Where you added the line of code (as per the Plugin instructions):

    <?php if(function_exists('show_media_header')){ show_media_header(); } ?>

    Just wrap this with the div, and inline style as follows:

    <div style="text-align:center;">
      <?php if(function_exists('show_media_header')){ show_media_header(); } ?>

    When you have tested it is working then simply add the inline style to your stylesheet or leave inline, its up to you.

    It’s working… 🙂
    Thanks very much. You saved my day.

    You’re welcome.. 🙂

    help! here’s the header.php code – where do I put the the code in this file to pull a flash header in? I tried several different places – some resulted in an error message (line 36) and one put the flash header (to the left) but took away the template design of the page ….. very, very, very new to this and no knowledge (whatsoever) ugh! sorry ….

    * Core header file, invoked by the get_header() function
    * @package Suffusion
    * @subpackage Templates

    global $suffusion_unified_options, $suffusion_interactive_text_fields, $suffusion_translatable_fields;
    foreach ($suffusion_unified_options as $id => $value) {
    * Some strings are set interactively in the admin screens of Suffusion. If you have WPML installed, then there may be translations of such strings.
    * This code ensures that such translations are picked up, then the unified options array is rewritten so that subsequent calls can pick it up.
    if (function_exists(‘icl_t’) && in_array($id, $suffusion_translatable_fields) && isset($suffusion_interactive_text_fields[$id])) {
    $value = wpml_t(‘suffusion-interactive’, $suffusion_interactive_text_fields[$id].”|”.$id, $value);
    global $$id;
    $$id = $value;
    $suffusion_unified_options[$id] = $value;
    <!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd”>
    <html xmlns=”http://www.w3.org/1999/xhtml” <?php language_attributes(); ?>>

    <head profile=”http://gmpg.org/xfn/11″>
    <meta http-equiv=”Content-Type” content=”<?php bloginfo(‘html_type’); ?>; charset=<?php bloginfo(‘charset’); ?>” />
    <link rel=”pingback” href=”<?php bloginfo(‘pingback_url’); ?>” />

    if (is_singular()) {
    $suffusion_pseudo_template = suffusion_get_pseudo_template_class();
    <body <?php body_class($suffusion_pseudo_template); ?>>
    <?php suffusion_before_page(); ?>
    <div id=”wrapper” class=”fix”>
    <div id=”container” class=”fix”>

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Center align flash header’ is closed to new replies.