Hi once again. I think I’m having some kind off css issue, maybe..
For some reason or another my avatar is appearing on the first question next to title of question as you can see from the picture. Any ideas how I can fix this.
Oh almost forgot, I don’t see the little icons anymore where I could delete or edit a post in the answer or question
Hi Dom,
To resolve this issue, please add the code below to the function file of your theme:
function dwqa_fix_postclass( $class, $postID ){
if( get_post_type( $postID ) == 'dwqa-question' ) {
if( !in_array( 'hentry', $class) ) {
$class[] = 'hentry';
}
}
return $class;
}
add_filter('post_class','dwqa_fix_postclass',10, 2);
Hope that helps!
Sorry to say that didn’t do anything. Perhaps I should’ve mentioned that I’m also on genesis frame work if that matters at all.
Indeed that matters a lot.
Currently, our DW QA plugin doesn’t support genesis framework yet.
But you can try to add the class ‘hentry’ to each <article> element on Question list page & Ask Question page, and see if it resolves your issue.
Or there is a CSS solution, you can edit the style.css file in plugins/dw-question-answer/assets/css folder, and find/replace all the text ‘hentry’ by ‘entry’.
Hope that helps!
The CSS solution worked out very nice thank you very much.
Please login or Register to submit your answer