holtzy
Forum Replies Created
-
Forum: Themes and Templates
In reply to: [Sketch] Sketch theme : Random image on the featured sliderThank you for this advice !
I contacted the Jetpack team who proposed me to add these lines in the function.php file of my child theme :
add_filter( 'featured_content_post_ids', 'akh_shuffle_jp_featured_content' ); function akh_shuffle_jp_featured_content( $featured_ids ) { shuffle( $featured_ids ); return $featured_ids; }It adds a shuffle function to choose the ID of the displayed picture. But it does not work : nothing changed in my website unfortunately.
If someone has any idea of something else to try, or any modification I could do on these code lines…. WOuld be awesome !
Forum: Themes and Templates
In reply to: [Sketch] Sketch theme : comments on a portfolio page ?Yes it works perfectly !!! I can’t believe it was that easy. I just summarize how I did in case other people want to do it.
1/ Copy the file /www/wp-content/themes/sketch/portfolio-page.php in your child theme.
2/ Edit this file, and add the code proposed by sunbrite_0728. You have to add it where you want your comment area to be. I wanted to have the comments just over the portfolio, like in this page : http://www.r-graph-gallery.com/19-map-leafletr/.
So I add the code just after this in the portfolio-page.php file :
if ( $project_query -> have_posts() ) : ?>Thank you very much for your support !