otherf
asked 7 years ago

Hello,
I’ve tried to change some styles like element position:
.dwqa-question-filter {
margin-bottom: 50px;
}
I copied style.css to my theme folder, according to the instruction: https://www.designwall.com/guide/dw-question-answer-plugin/style-integration/
and provided the required changes. Unfortunately, nothing changed. 🙁
I’ve also tried change the element in the /wp-content/plugins/dw-question-answer/templates/assets/css/style.css
but without success.
All cache is disabled.

otherf
replied 7 years ago

Issue was from my site.
Sorry.

1 Answers
DominicStaff
answered 7 years ago

You can add the following code to the functions.php file to load the style Css code:

// load style for dw qa plugin
if( !function_exists('dwqa_foodrecipes_scripts') ){
function dwqa_foodrecipes_scripts(){
wp_enqueue_style( 'dw-foodrecipes-qa', get_stylesheet_directory_uri() . '/dwqa-templates/style.css' );
}
add_action( 'wp_enqueue_scripts', 'dwqa_foodrecipes_scripts' );
}


Dominic Staff
replied 7 years ago

If you still face their issue, you can send me username & password of your site for further checking. Also, you can let me know detail about the position that you want to change the style.

otherf
replied 7 years ago

It works but loads style.css from plugin folder and from my theme folder.
Is it possible to tell the wordpress to use only style.css from theme folder?

Dominic Staff
replied 7 years ago

Yes, you can remove the style.css file in the dwqa-templates and remove the PHP code that I sent in the previous answer and then you can add your CSS code to the style.css file in the theme.
If you still face their issue, you can send me username & password of your site for further checking.

Powered by DW Question & Answer Pro