Swf Header
-
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
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.
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.
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; ?>Any changes you make to header.php (or any other core file) will be overwritten during a theme update.
What is your website url?
- 1
- 2
- You must be logged in to reply to this topic.