- Statut : non résolu
- Ce sujet contient 6 réponses, 2 participants et a été mis à jour pour la dernière fois par
Natureetcie, le il y a 9 années et 10 mois.
-
AuteurMessages
-
15 mars 2011 à 8 h 43 min #492644
Bonjour,
Ma configuration WP actuelle
– Version de WordPress :
– Version de PHP/MySQL :
– Thème utilisé : modularity lite
– Extensions en place :
– Nom de l’hebergeur :
– Adresse du site : http://www.leblogdenature-et-cie.frProblème(s) rencontré(s) :
Je souhaite enlever le terme “Latest” sur ma première page: http://www.leblogdenature-et-cie.fr, ou si ce n’est pas possible au moins le renommer en français. Où dois-je faire ces modifs?
Merci d’avance15 mars 2011 à 10 h 35 min #761650tu devrais trouver ton bonheur en éditant la page index.php
15 mars 2011 à 10 h 54 min #761651Où exactement? Je ne trouve pas. Voici mon code:
<?php
/**
* @package WordPress
* @subpackage Modularity
*/
?><?php
$options = get_option( ‘modularity_theme_options’ );
if ( $options != ” ) :
?><?php if ( $options != '' ) echo '‘ . stripslashes( $options ) . ‘
‘ ?>
<?php
// Start a new query that looks at all the posts on the home page.
$mod_slide = new WP_Query();
$mod_slide->query( ‘order=DESC&caller_get_posts=1’ );while ($mod_slide->have_posts()) : $mod_slide->the_post();
// Check to see if the posts have attachments.
$attachments = get_children(array(‘post_parent’ => get_the_ID(), ‘post_type’ => ‘attachment’, ‘post_mime_type’ => ‘image’, ‘orderby’ => ‘menu_order’));
if ( empty( $attachments ) )
continue;// Set our attachment variable.
$first_attachment = ”;// Awesome! We have attachments! Let’s grab the first one that’s 950px x 425px.
foreach ( $attachments as $attachment ) {
$image = wp_get_attachment_image_src( $attachment->ID, ‘modularity-slideshow’ );if ( $image[1] >= 950 && $image[2] >= 425 ) {
$first_attachment = $attachment;
break;
}
}// Cool. Now, if we actually have an attachment, let’s pop it into our slideshow.
if ( $first_attachment != ” ) { ?><a href="” rel=”bookmark”>ID, ‘modularity-slideshow’ ); ?><?php }
endwhile;
?>15 mars 2011 à 11 h 05 min #761652ah, ton thème doit utiliser une page home.php
regarde dedans ou édite la…
15 mars 2011 à 11 h 24 min #761653J’ai trouvé merci!
15 mars 2011 à 11 h 28 min #761654de rien 😉
15 mars 2011 à 11 h 36 min #761655Peux tu m’aider sur autre chose, j’ai voulu changer des commentaires, sauf que ma page n’apparait plus!
Voici le code, c’est la page blog.php, j’ai juste changer là où c’st écrit en français (laisser un commentaire et désolé…) et la page n’apparait plus! voir http://www.leblogdenature-et-cie.fr
<?php
/**
* @package WordPress
* @subpackage Modularity
*/
?>
<div class="span-“><div id=”post-“>
<a href="” rel=”bookmark” title=”Permanent Link to “>
‘
‘ . __( ‘Pages:’, ‘modularity’ ), ‘after’ => ‘‘ ) ); ?>
<?php
$tag_list = get_the_tag_list( ‘| Tags: ‘, ‘, ‘ );
printf( __( ‘%1$s | Categories: %2$s %3$s | ‘, ‘modularity’ ),
get_the_time( get_option( ‘date_format’ ) ),
get_the_category_list( ‘, ‘ ),
$tag_list
);
?> -
AuteurMessages
- Vous devez être connecté pour répondre à ce sujet.