Swf Header

  • aforapple


    Thanks for the great theme!

    can you please help how to change the background to a flash file swf.format I have tried to import it with Dreamweaver but it doesn’t work!

    please help I have been trying this for a week now I can’t get it.

    the website is http://www.xelafilms.com

    appreciated in advnace!





    This one is new to me.

    I suppose one way would be to “hide” the current header image, and then use an action hook to insert your swf file.

    This is experimental, but you can give it a go.

    1. Disable your current header from being displayed.

    #header {display:none;}

    2. Create an action hook to insert your new content. You might have to play around to find the right one, but I would look in the header.php file to start with. Please do a search if you don’t know about hooks; both Ken and myself have some very helpful tutorials.

    3. Go to your widget area, open your new action hook widget, and insert the link to your flash file.

    Play around with it and let me know how you progress.



    i created an action hook on the upper side and inserted .swf content but i couldn’t hide the header.

    #header {display:none;} didn’t work or i couldn’t do



    Why disabling header? Will action hook attached to header.php work if you set dispay: none;?

    Try this:

    Set header to 960×225 like described here:


    Add action hook in header.php, put swf in action hook widget (google for plugin), style action hook widget with swf in it, to overlay current header.

    p.s. create child-theme, and put all modifications in it.



    here’s the situation:


    —-header img—-

    –other contents–

    so the “swf” and “header img” are both visiable and i need “header img” to hide.



    at header.php you must delete the path for the header.img you are done.



    here’s the header.php codes. which part exactly do i need to delete? :

    if ($post)
    $post_id = $post->ID;
    $post_id = false;
    $header_img = apply_filters('graphene_header_image', graphene_get_header_image($post_id));

    * Check if the page uses SSL and change HTTP to HTTPS if true
    * Experimental. Let me know if there's any problem.
    if (is_ssl() && stripos($header_img, 'https') === false) {
    $header_img = str_replace('http', 'https', $header_img);

    // Gets the colour for header texts, or if we should display them at all
    if ('blank' == get_theme_mod('header_textcolor', HEADER_TEXTCOLOR) || '' == get_theme_mod('header_textcolor', HEADER_TEXTCOLOR))
    $style = ' style="display:none;"';
    $style = ' style="color:#' . get_theme_mod('header_textcolor', HEADER_TEXTCOLOR) . ';"';
    <div id="header" style="background-image:url(<?php echo $header_img; ?>);">
    <?php if ($graphene_settings['link_header_img']) : ?>
    <a>" id="header_img_link" title="<?php esc_attr_e('Go back to the front page', 'graphene'); ?>"> </a>
    <?php endif; ?>



    background-image:url(<?php echo $header_img; delete this

    easy option is just remove your header images from the main folder so you don’t mess up with the code.



    i’m able to hide the header_img but this time there is still remaning an empty space with some shadow around.


    —epmty space—

    –other contents–



    Any changes you make to header.php (or any other core file) will be overwritten during a theme update.

    What is your website url?

Viewing 10 posts - 1 through 10 (of 17 total)

  • 1
  • 2
  • You must be logged in to reply to this topic.
Graphene Themes Forum