Archived topic
Hard to understand problem with filter
2 replies · Started by Dominique on August 31, 2018
I try to put this code on code snippet :
add_filter( 'generate_leave_comment','tu_custom_leave_comment' );
function tu_custom_leave_comment() {
return 'Join the conversation';
}
And it's work, then i change to ;
add_filter( 'generate_leave_comment','tu_custom_leave_comment' );
function tu_custom_leave_comment() {
return 'Nous serions heureux de savoir ce que vous en avez pensé';
}
And it's don't work, i think first it's the accent "é" but with or without it don't work
Where is the error?
No, it's ok now, caching problem.
Other thing, i just copy this code to have masonry:
add_filter( 'generate_blog_masonry','tu_portfolio_masonry' );
function tu_portfolio_masonry( $masonry ) {
if ( is_post_type_archive( 'portfolio' ) ) {
return 'true';
}
return $masonry;
}
but can't find the place where i'll see that
`

Hi there, this article covers all the blog options:
https://docs.generatepress.com/article/option_generate_blog_settings/