Swf Header

  • aforapple

    #2573

    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!

    thanks

    Zabe

    Anonymous

    #20945

    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.

    tbpmlk

    #20946

    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

    Anonymous

    #20947

    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:

    https://forum.graphene-theme.com/graphene-support/header-image-size-change#post-345

    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.

    tbpmlk

    #20948

    here’s the situation:


    swf


    —-header img—-


    –other contents–


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

    zabster

    #20949

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

    tbpmlk

    #20950

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

    <?php
    if ($post)
    $post_id = $post->ID;
    else
    $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;"';
    else
    $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; ?>

    zabster

    #20951

    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.

    tbpmlk

    #20952

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


    swf


    —epmty space—


    –other contents–


    Anonymous

    #20953

    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)

You must be logged in to reply to this topic.

Do NOT follow this link or you will be banned from the site!