Combas
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Twenty Sixteen] set_post_thumbnail_sizeI find this solution in another post
function yourchildtheme_thumb() {
set_post_thumbnail_size( 305, 314, true );
}
add_action( ‘after_setup_theme’, ‘yourchildtheme_thumb’, 11 );Until this new option, you can edit the header.php file in a child theme and modify as below
Place the image of your logo in an /image folder in the root of your child theme<div class=”site-branding”>
` <?php if ( is_front_page() && is_home() ) : ?>
<h1 class=”site-title”><a href=”<?php echo esc_url( home_url( ‘/’ ) ); ?>” rel=”home”><img src=”<?php echo get_stylesheet_directory_uri(); ?>/images/yourlogo.jpg” alt=”Your site name” ></a></h1><?php else : ?>
<p class=”site-title”><a href=”<?php echo esc_url( home_url( ‘/’ ) ); ?>” rel=”home”><img src=”<?php echo get_stylesheet_directory_uri(); ?>/images/yourlogo.jpg” alt=”your site name” ></a></p>
<?php endif;
…
</div><—site branding —>`sans réponse,
J’ai utilisé une autre solutionj’ai créé des articles avec une catégory et non une actégorie portfolio.
Puis j’ai créé un category-xx.php pour afficher excatement ce que je voulais pour les articles appartenat à cette catégorie.
In very bad english (sorry I’m french)
unanswered
I used another solutionI created items with a category only and not a portfolio category.
Then I created a category-xx.php to show exactly what I wanted for the articles in this category.