ThemeShaper Forums » Thematic

adding FLASH to header

(14 posts)
  • Started 4 years ago by mvillaca
  • Latest reply from ooh me me
  • This topic is resolved
  1. would like to add a flash slideshow to the header_ right under a banner image

    how should i go about it?

    Posted 4 years ago #
  2. heres a link to test page
    http://marcusvillaca.com/lucas/

    Posted 4 years ago #
  3. Hi,

    you can use the following code in your child theme's functions.php:

    function remove_things() {
      remove_action('thematic_header','thematic_blogtitle',3);
      remove_action('thematic_header','thematic_blogdescription',5);
    }
    add_action('init', 'remove_things');
    
    function my_banner() {
      <-- your banner code goes in here -->
    }
    add_action('thematic_header','my_banner',3);
    
    function my_flash() {
      <-- your flash code goes in here -->
    }
    add_action('thematic_header','my_flash',5);

    Cheers,

    Chris

    Posted 4 years ago #
  4. thanks so much chris

    will place code and report back shortly

    cheers <m

    Posted 4 years ago #
  5. hi chris_ no luck_ heres my function.php code

    <?php
    
    //
    //  Custom Child Theme Functions
    //
    
    // I've included a "commented out" sample function below that'll add a home link to your menu
    // More ideas can be found on "A Guide To Customizing The Thematic Theme Framework"
    // http://themeshaper.com/thematic-for-wordpress/guide-customizing-thematic-theme-framework/
    
    // Adds a home link to your menu
    // http://codex.wordpress.org/Template_Tags/wp_page_menu
    //function childtheme_menu_args($args) {
    //    $args = array(
    //        'show_home' => 'Home',
    //        'sort_column' => 'menu_order',
    //        'menu_class' => 'menu',
    //        'echo' => true
    //    );
    //	return $args;
    //}
    //add_filter('wp_page_menu_args','childtheme_menu_args');
    
    //function remove_things() {
    //  remove_action('thematic_header','thematic_blogtitle',3);
    //  remove_action('thematic_header','thematic_blogdescription',5);
    //}
    //add_action('init', 'remove_things');
    
    //function my_banner() {
    //  <IMG STYLE="position:absolute; TOP:35px; LEFT:0px; WIDTH:950px; HEIGHT:110px" SRC="images/banner.png">
    //}
    //add_action('thematic_header','my_banner',3);
    
    //function my_flash() {
    // <!-- begin embedded Flash file... -->
    //   <table border='0' cellpadding='0' align="center">
    //      <tr><td>
    //      <OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
    //      codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0'
    //        width="950" height="500">
    //        <param name='movie' value="http://faheyvillaca.com/Media/test.swf">
    //        <param name='quality' value="high">
    //        <param name='bgcolor' value='#FFFFFF'>
    //        <param name='loop' value="false">
    //        <EMBED src="http://faheyvillaca.com/Media/test.swf" quality='high' bgcolor='#FFFFFF' width="950"
    //        height="500" loop="false" type='application/x-shockwave-flash'
    //        pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>
    //        </EMBED>
    //        </OBJECT>
    //        </td></tr>
    //        <!-- ...end embedded Flash file -->
    //       </table>
    //}
    //add_action('thematic_header','my_flash',5);
    
    ?>
    Posted 4 years ago #
  6. You forgot some minor PHP related things :-)

    function remove_things() {
      remove_action('thematic_header','thematic_blogtitle',3);
      remove_action('thematic_header','thematic_blogdescription',5);
    }
    add_action('init', 'remove_things');
    
    function my_banner() { ?>
      <IMG STYLE="position:absolute; TOP:35px; LEFT:0px; WIDTH:950px; HEIGHT:110px" SRC="images/banner.png">
    <?php }
    add_action('thematic_header','my_banner',3);
    
    function my_flash() { ?>
     <!-- begin embedded Flash file... -->
       <table border='0' cellpadding='0' align="center">
          <tr><td>
          <OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
          codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0'
            width="950" height="500">
            <param name='movie' value="http://faheyvillaca.com/Media/test.swf">
            <param name='quality' value="high">
            <param name='bgcolor' value='#FFFFFF'>
            <param name='loop' value="false">
            <EMBED src="http://faheyvillaca.com/Media/test.swf" quality='high' bgcolor='#FFFFFF' width="950"
            height="500" loop="false" type='application/x-shockwave-flash'
            pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash'>
            </EMBED>
            </OBJECT>
            </td></tr>
            <!-- ...end embedded Flash file -->
           </table>
    <?php }
    add_action('thematic_header','my_flash',5);

    Chris

    Posted 4 years ago #
  7. thanks Chris!

    Posted 4 years ago #
  8. Cedric
    Member

    hi Chris, i embeded the coding but it overlap my content which looks like this http://cedricchanstudio.com/blog/, please help. thanks

    Posted 4 years ago #
  9. Looks like you fixed it Cedric?

    Posted 4 years ago #
  10. Cedric
    Member

    ya, i decided to add in the widget under admin dashboard, but now another problem appear.
    The title appear to have 2 links which one is permalink, it looks weird now :(
    please help..

    Posted 4 years ago #
  11. Hi Cedric,

    could you please explain a bit more?! .. or take a screenshot and drop a link here.

    Chris

    Posted 4 years ago #
  12. Cedric
    Member

    now it looks okay, no more duplication i have no idea what's the problem :).
    Few more questions to consult :
    1. flash banner, there is a margin on the left, can i know how to fix it
    2. how to remove the border right after the flash banner
    3. how to adjust the gap
    4. can i change the color of the logo at the top

    please refer the link of screenshot here http://cedricchanstudio.com/website.jpg
    thanks in advance and much appreciated.

    cedric

    Posted 4 years ago #
  13. ooh me me
    Member

    I understand the code which was graciously provided by Chris (as usual) is for the header, but I'm not sure I understand how I might add the flash/swf specifically to my #branding div...can someone help me?

    Posted 4 years ago #
  14. ooh me me
    Member

    [resolved] Nevermind, figured it out

    Posted 4 years ago #

RSS feed for this topic

Reply

You must log in to post.