Dom Amor
asked 10 years ago

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.  

5 Answers
Dom Amor
answered 10 years ago

Oh almost forgot, I don’t see the little icons anymore where I could delete or edit a post in the answer or question 

Kido D
answered 10 years ago

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!

Dom Amor
answered 10 years ago

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. 

Kido D
answered 10 years ago

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!

Dom Amor
answered 10 years ago

The CSS solution worked out very nice thank you very much. 

Powered by DW Question & Answer Pro