Dimitris
asked 3 years ago

Hello there, 
I want to change the css classes of the pagination links. Where can I find the files that are edited? Also, can I override it so that in case of an update I don’t loose my customization?
thanks

1 Answers
DominicStaff
answered 3 years ago

At the moment, if you want to customize the plugin, you can create the dwqa-templates/styles/default folder in your theme folder and copy/paste the archive-question.php file from the wp-content/plugins/dw-question-answer/templates/styles/default into dwqa-templates/styles/default folder and open the archive-question.php file to add a class to the <div class=”dwqa-questions-footer”> then override it.

To custom CSS, you can create a style.css in the dwqa-templates/styles/default folder and add the following code to the functions.php file:

/* load style for DW Q&A plugin */
if( !function_exists('dwqa_dom_amor_scripts') ){
function dwqa_dom_amor_scripts(){
wp_enqueue_style( 'dw-dom-amor-qa', get_stylesheet_directory_uri() . '/dwqa-templates/style.css' );
}
add_action( 'wp_enqueue_scripts', 'dwqa_dom_amor_scripts' );
}
Powered by DW Question & Answer Pro