Link to home
Create AccountLog in
Avatar of jonathanduane2010
jonathanduane2010

asked on

Creating new Site in wordpress

hi,

i am creating a new site http://whiteformconstruction.com/nua and i would like to add an swf like the one here http://mightyavonradio.com (the mp3 player) to the right of the logo, i was wondering how i would do it..

thanks as always
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Assuming the logo is in the header.php of theme, just open that file in the WordPress theme editor (or however you prefer to edit) and add the HTML embedding code necessary to generate the player.
Avatar of jonathanduane2010
jonathanduane2010

ASKER

thanks jason1178

this is the header

<?php
/**
 * Header Template
 *
 * @package WP Consultant
 * @subpackage Template
 */

// Load Theme Options
global $ct_options;

?>
<!DOCTYPE html>
<!--[if lt IE 7 ]><html class="ie ie6" lang="<?php language_attributes(); ?>"><![endif]-->
<!--[if IE 7 ]><html class="ie ie7" lang="<?php language_attributes(); ?>"><![endif]-->
<!--[if IE 8 ]><html class="ie ie8" lang="<?php language_attributes(); ?>"><![endif]-->
<!--[if (gte IE 9)|!(IE)]><!--><html lang="<?php language_attributes(); ?>"><!--<![endif]-->
<head>

	<meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
	<title><?php ct_title(); ?></title>
	<meta name="description" content="<?php bloginfo('description'); ?>" />

	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    
    <link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" media="screen" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />
    
    <?php wp_enqueue_script("jquery"); ?>

    <?php wp_print_scripts(); ?>
	<?php wp_head(); ?>   
     
</head>

<body<?php ct_body_id('top'); ?> <?php body_class(); ?>>

	<?php if($ct_options['ct_drawar'] == 'Yes') { ?>
    <div class="drawar-wrap">
        <div class="container">
            <?php if (function_exists('dynamic_sidebar') && dynamic_sidebar('Top Drawar') ) : else : endif; ?>
        </div>
    </div>
        
    <div class="container">
        <a class="open-close icon-plus right" href="#"></a>
    </div>
    <?php } ?>

    <header role="masthead">
        <div class="container">
            <?php if($ct_options['ct_text_logo'] == "Yes") { ?>
                <div id="logo">
                    <h2><a href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a></h2>
                </div>
            <?php } else { ?>
                <?php if($ct_options['ct_logo']) { ?>
                    <a href="<?php echo home_url(); ?>"><img id="logo" src="<?php echo $ct_options['ct_logo']; ?>" alt="<?php bloginfo('name'); ?>" /></a>
                <?php } else { ?>
                    <a href="<?php echo home_url(); ?>"><img id="logo" src="<?php echo get_template_directory_uri(); ?>/images/consultant-logo<?php if($ct_options['ct_skin'] == "Dark") { echo '-white'; } ?>.png" alt="WP Consultant, a collective theme by Contempo" /></a>
                <?php } ?>
            <?php } ?>
            
            <div id="contact-cta" class="right">
				<?php echo $ct_options['ct_header_cta']; ?>                
            </div>
            
            <?php ct_nav(); ?>
        </div>
    </header>

Open in new window



and this is the html code

<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="450" height="140">
  <param name="movie" value="bin/AudioPlayer.swf">
  <param name="quality" value="high">
  <param name="wmode" value="opaque">
  <param name="swfversion" value="9.0.45.0">
  <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
  <param name="expressinstall" value="Scripts/expressInstall.swf">
  <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
  <!--[if !IE]>-->
  <object type="application/x-shockwave-flash" data="bin/AudioPlayer.swf" width="450" height="140">
    <!--<![endif]-->
    <param name="quality" value="high">
    <param name="wmode" value="opaque">
    <param name="swfversion" value="9.0.45.0">
    <param name="expressinstall" value="Scripts/expressInstall.swf">
    <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
    <div>
      <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
      <p><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" width="112" height="33" /></a></p>
    </div>
    <!--[if !IE]>-->
  </object>
  <!--<![endif]-->
</object>

Open in new window

So the logo is called here:

 <?php if($ct_options['ct_text_logo'] == "Yes") { ?>
                <div id="logo">
                    <h2><a href="<?php echo home_url(); ?>"><?php bloginfo('name'); ?></a></h2>
                </div>
            <?php } else { ?>
                <?php if($ct_options['ct_logo']) { ?>
                    <a href="<?php echo home_url(); ?>"><img id="logo" src="<?php echo $ct_options['ct_logo']; ?>" alt="<?php bloginfo('name'); ?>" /></a>
                <?php } else { ?>
                    <a href="<?php echo home_url(); ?>"><img id="logo" src="<?php echo get_template_directory_uri(); ?>/images/consultant-logo<?php if($ct_options['ct_skin'] == "Dark") { echo '-white'; } ?>.png" alt="WP Consultant, a collective theme by Contempo" /></a>
                <?php } ?>
            <?php } ?>

Open in new window


Add the object code in that neighborhood.
i am not too sure how to do that??
ASKER CERTIFIED SOLUTION
Avatar of Jason C. Levine
Jason C. Levine
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer