so if you currently have
<div class="bbp-reply-content">
This is the content
</div>
what do you want it to look like ?
Hello Robin,
Thank you for your quick reply.
But that’s not what I want.
In the <? Php function bbp_reply_content (); ?>
There is the text written by the members. I would like to create a <div> space with independent class inside the writing space.
I have already done what you suggest but it creates a div outside of <? Php bbp_reply_content (); ?>
Regards
the above was a question – what do you want it to look like? I was trying to help you, but you’ll find the function in
includes/replies/templates it has a filter you can use.
Sorry I am French and my English can be improved.
I went to see where you say, I can see the function well but the problem is that I don’t know how to create a div with class at all.
which is the subject of my request.
Regards
ok, let us try and get to what you want.
so if the content of a reply was ‘hello how are you ?’
then at the moment bbpress would show
<div class="bbp-reply-content">
hello how are you ?
</div>
what would you like it to show?
Thank’s,
I would like that :
<div class=”bbp-reply-content”>
<p>hello how are you ?</p>
<div class=”frenchlemans”>
I’m superman
</div>
</div>
ok, will I’m superman be the same everytime ?
no it will be a <div> to create a space with a min-height set in the CSS class.
Put this in your child theme’s function file –
ie wp-content/themes/%your-theme-name%/functions.php
where %your-theme-name% is the name of your theme
or use
Code Snippets
add_filter( 'bbp_get_reply_content', 'rew_add_class' , 10 , 2) ;
function rew_add_class ($content, $reply_id ) {
$content.='<div class="frenchlemans">Iām superman</div>' ;
return $content;
}
WAhoooo Robiiiin !!
So good, there is 5 days i’m looking for
You are the best of the best !!
Thank you very much !!
Regards
Bernard
Great – glad you are fixed !! š