par
Marie Céline » 16 oct. 2013, 16:26
Bonjour,
Je reviens aujourd'hui avec un nouveau problème :
Je travail sur un thème wordpress dans lequel je procède à des modifications en tapant dans le code.
Mon souci : J'ai des images qui baisse progressivement en opacité jusqu'à disparaitre dès lors que ma souris passe dessus. Je voudrais baisser progressivement cette opacité mais pas jusqu'au point de voir disparaitre l'image. Voici le code :
Code : Tout sélectionner
<article id="post-12" <?php post_class('post-box'); ?>>
<header class="entry-header">
<?php if ( 'post' == get_post_type() ) : ?>
<?php endif; ?>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'magazino' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
</header><!-- .entry-header -->
<div class="entry-content post_content">
<?php echo magazino_excerpt(12); ?>
</div><!-- .entry-content -->
<div class="go-button"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'magazino' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php _e('▶', 'magazino'); ?></a></div>
<?php if ( has_post_thumbnail()) : ?>
<div class="post-box-img"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail( array( 500, 200 ), array( 'style' => 'position:absolute', 'onload' => 'thumb_img_onload(this)' ) ); ?></a></div>
<?php else : ?>
<?php
$postimgs =& get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC' ) );
if ( !empty($postimgs) ) {
$firstimg = array_shift( $postimgs );
$th_image = wp_get_attachment_image( $firstimg->ID, array( 500, 200 ), false, array( 'style' => 'position:absolute', 'onload' => 'thumb_img_onload(this)') );
?>
<div class="post-box-img"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php echo $th_image; ?></a></div>
<?php } ?>
<?php endif; ?>
</article><!-- #post-<?php the_ID(); ?> -->
Je n'arriva pas a comprendre à quel moment cette fonctionnalité est indiquée, où quel fichier est appelé ?
Merci pour votre aide !
Bonjour,
Je reviens aujourd'hui avec un nouveau problème :
Je travail sur un thème wordpress dans lequel je procède à des modifications en tapant dans le code.
Mon souci : J'ai des images qui baisse progressivement en opacité jusqu'à disparaitre dès lors que ma souris passe dessus. Je voudrais baisser progressivement cette opacité mais pas jusqu'au point de voir disparaitre l'image. Voici le code :
[code]
<article id="post-12" <?php post_class('post-box'); ?>>
<header class="entry-header">
<?php if ( 'post' == get_post_type() ) : ?>
<?php endif; ?>
<h2 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'magazino' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h2>
</header><!-- .entry-header -->
<div class="entry-content post_content">
<?php echo magazino_excerpt(12); ?>
</div><!-- .entry-content -->
<div class="go-button"><a href="<?php the_permalink(); ?>" title="<?php printf( esc_attr__( 'Permalink to %s', 'magazino' ), the_title_attribute( 'echo=0' ) ); ?>" rel="bookmark"><?php _e('▶', 'magazino'); ?></a></div>
<?php if ( has_post_thumbnail()) : ?>
<div class="post-box-img"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php the_post_thumbnail( array( 500, 200 ), array( 'style' => 'position:absolute', 'onload' => 'thumb_img_onload(this)' ) ); ?></a></div>
<?php else : ?>
<?php
$postimgs =& get_children( array( 'post_parent' => $post->ID, 'post_type' => 'attachment', 'post_mime_type' => 'image', 'orderby' => 'menu_order', 'order' => 'ASC' ) );
if ( !empty($postimgs) ) {
$firstimg = array_shift( $postimgs );
$th_image = wp_get_attachment_image( $firstimg->ID, array( 500, 200 ), false, array( 'style' => 'position:absolute', 'onload' => 'thumb_img_onload(this)') );
?>
<div class="post-box-img"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php the_title_attribute(); ?>"><?php echo $th_image; ?></a></div>
<?php } ?>
<?php endif; ?>
</article><!-- #post-<?php the_ID(); ?> -->
[/code]
Je n'arriva pas a comprendre à quel moment cette fonctionnalité est indiquée, où quel fichier est appelé ?
Merci pour votre aide !