Dom Amor
asked 11 years ago

Can someone shed some light on how to do this.  Trying to do the integration and while changing the code that would go into functions.php it takes down the whole site. The issue when I change line 3 ” function dwqa_simplex_scripts(){ ” to function dwqa_my-theme_scripts(){ all hell breaks loose. 
This is the code we are told to insert in functions.php Thanks for any help.. 

 /* load style for DW Q&A plugin */
if( !function_exists('dwqa_simplex_scripts') ){
    function dwqa_simplex_scripts(){
        wp_enqueue_style( 'dw-simplex-qa', get_stylesheet_directory_uri() . '/dwqa-templates/style.css' );
    }
    add_action( 'wp_enqueue_scripts', 'dwqa_simplex_scripts' );
}
5 Answers
Dom Amor
answered 11 years ago

Yes thank you very much. Yeah I sure did see the difference. I was paying more attention to the functions file. However, yes there is a however all my fault of course. That was live testing site with the wrong theme. The one I need fixed is called news-pro and is now active. I know, I’m a jerk. Sorry.. I did try to make new changes but no way could I figure it out. Would you mind….  

Jin
replied 11 years ago

Hi Dom,
We have checked your site and look like things are working fine.
Did you integrate the plugin already?

Dom Amor
answered 11 years ago

Hi, Rambu was nice enough to help me however my dumb ass had the wrong theme active. It’s the news-pro theme I need help with and that one is now active. I just can’t figure it out. The side bar is missing altogether 

Dom Amor
answered 11 years ago

You’re the best. I’m not even going to ask how you did it but just say a BIG THANK YOU. I have already made those changes to my main site and it looks awesome. http://www.askmediy.com 

DominicStaff
answered 11 years ago

Hi Dom ! 
I think you have resolved this issue, I will mark resolved this question and if you have any question, please add new question. We will help you resolve it !
Regards,

valivoki
answered 11 years ago

hi there / pls can you help me how to fix this ?

bc it is not showing the side bar yet i just put it the code on the end of file function.php : 

/* load style for DW Q&A plugin */
if( !function_exists(‘dwqa_directory_scripts’) ){
function dwqa_directory_scripts(){
wp_enqueue_style( ‘dw-directory-qa’, get_stylesheet_directory_uri() . ‘/dwqa-templates/style.css’ );
}
add_action( ‘wp_enqueue_scripts’, ‘dwqa_directory_scripts’ );
}
?>

DominicStaff
answered 11 years ago

Hello Valivoki ! 
Please find here for the document guide on how to create 2 file: content-start-wrapper.php, content-end-wrapper.php
URL: http://cmspioneer.com/designwall/guide/dw-question-answer-plugin/#Style_integration
– Please add the following code to the content-start-wrapper.php file.

  <div id="main" class="defaultContentWidth">
<div id="wrapper-row">
<div id="primary" class="">
<?php if( is_page() || is_archive() ) { ?>
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Question & Answer', 'dw-focus' ); ?></h1>
</header>
<?php } ?>

– Please add the following code to the content-end-wrapper.php file.

  </div>
<?php get_sidebar('right'); ?>
</div>
</div>

If you still face the issue, you can send me your FTP. We will help you resolve this issue.
Hope this helps ! 

valivoki
replied 11 years ago

its still not showing the right side bar pls send me your email to send ftp detail

Dominic Staff
replied 11 years ago

Hi,
Please send create a private question then send me your FTP. We will help you resolve this issue.
Regards,

Powered by DW Question & Answer Pro