- Statut : non résolu
- Ce sujet contient 20 réponses, 10 participants et a été mis à jour pour la dernière fois par
osez, le il y a 9 années et 4 mois.
-
AuteurMessages
-
14 avril 2009 à 7 h 21 min #571081
re, voici ce qu’il faut delete je pense pour ce thème :
<a href="/”>
a la ligne 42-41.
Par contre, une fois remplacé par le code donné auparavant, ca ne marche pas. Que faire ?14 avril 2009 à 9 h 03 min #571082pour ceux que ca peut intéresser, ,voici la solution :
14 avril 2009 à 9 h 09 min #571083Le code que tu viens de donner, tu le rajoutes dans le header.php ? Et tu as enlevé des lignes avant ? Lesquelles ? Mon code est dans une réponse au-dessus.
15 mai 2011 à 16 h 35 min #571084Bonjour,
Je re-up ce sujet après plus de deux ans ;
Ne m’y retrouvant pas parmi les codes proposés ci-dessus, Savez-vous quel morceau de code marche réellement pour insérer une bannière en flash dans le header ?
Pour info voici le code de mon fichier header.php
<html xmlns="http://www.w3.org/1999/xhtml" > <title></title> <meta http-equiv="content-type" content="; charset=” /> <link rel="stylesheet" type="text/css" href="” /> <link rel="alternate" type="application/rss+xml" href="” title=”” /> <link rel="alternate" type="application/rss+xml" href="” title=”” /> <link rel="pingback" href="” /> <body class="”> <div id="wrapper" class="hfeed"> <div id="header"> <h1 id="blog-title"><span><a href="/” title=”” rel=”home”></a></span></h1> <div id="blog-description"></div> </div><!-- #header --> <div id="access"> </div><!-- #access -->
Merci par avance
16 mai 2011 à 8 h 58 min #571085Up !
Personne ne saurait comment faire ?
Merci5 décembre 2011 à 14 h 21 min #571086chondre wrote:Bonjour,Je recherche désespérément un moyen d?incorporer un fichier flash dans mon header à la place du fichier qui est actuellement toujours une image.jpg
Par avance merci de m?aider.
PS : je ne suis vraiment pas un as en programmation.:rolleyes:
Bonjour à tous. Je suis dans le même cas de figure, avec le thème Twenty Eleven 1.1, et l’hébergeur OVH.
Il s’agit donc de remplacer la bannière au format image par un fichier flash.Voici le code du header, merci d’avance à ceux qui pourront m’aider !🙂
<?php
/**
* The Header for our theme.
*
* Displays all of the section and everything up till*
* @package WordPress
* @subpackage Twenty_Eleven
* @since Twenty Eleven 1.0
*/
?>
<html id="ie6" >
<html id="ie7" >
<html id="ie8" ><!–[if !(IE 6) | !(IE 7) | !(IE
]>
<html >
<!–<meta charset="” />
<?php
/*
* Print thetag based on what is being viewed.
*/
global $page, $paged;wp_title( ‘|’, true, ‘right’ );
// Add the blog name.
bloginfo( ‘name’ );// Add the blog description for the home/front page.
$site_description = get_bloginfo( ‘description’, ‘display’ );
if ( $site_description && ( is_home() || is_front_page() ) )
echo ” | $site_description”;// Add a page number if necessary:
if ( $paged >= 2 || $page >= 2 )
echo ‘ | ‘ . sprintf( __( ‘Page %s’, ‘twentyeleven’ ), max( $paged, $page ) );?>
<link rel="stylesheet" type="text/css" media="all" href="” />
<link rel="pingback" href="” />
<script src="/js/html5.js” type=”text/javascript”><?php
/* We add some JavaScript to pages with the comment form
* to support sites with threaded comments (when in use).
*/
if ( is_singular() && get_option( ‘thread_comments’ ) )
wp_enqueue_script( ‘comment-reply’ );/* Always have wp_head() just before the closing
* tag of your theme, or you will break many plugins, which
* generally use this hook to add elements to such
* as styles, scripts, and meta tags.
*/
wp_head();
?><body >
<a href="” title=”” rel=”home”>
<?php
// Check to see if the header image has been removed
$header_image = get_header_image();
if ( ! empty( $header_image ) ) :
?>
<a href="”>
<?php
// The header image
// Check if this is a post or page, if it has a thumbnail, and if it’s a big one
if ( is_singular() &&
has_post_thumbnail( $post->ID ) &&
( /* $src, $width, $height */ $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), array( HEADER_IMAGE_WIDTH, HEADER_IMAGE_WIDTH ) ) ) &&
$image[1] >= HEADER_IMAGE_WIDTH ) :
// Houston, we have a new header image!
echo get_the_post_thumbnail( $post->ID, ‘post-thumbnail’ );
else : ?>
<img src="” width=”” height=”” alt=”” /><?php
// Has the text been hidden?
if ( ‘blank’ == get_header_textcolor() ) :
?>
<div class="only-search with-image”><?php
else :
?>
-
AuteurMessages
- Vous devez être connecté pour répondre à ce sujet.