David Ramos
asked 10 years ago

For some reason once I install your plugin and I assign a page to it it loose the page title. Any reason for it.

1 Answers
BigHug
answered 10 years ago

Hi David,
If you want to include page title in DWQA Archive Page, please make a “/dwqa-templates/” folder in your theme folder, then copy two files “content-start-wrapper.php” and “content-end-wrapper.php” from “/wp-content/plugins/dw-question-answer/inc/templates/” to edit header of archive page. The following code is an example of  DWQA Simplex Theme that we include the title for it:

file content-start-wrapper.php : 

<?php if( is_page() || is_archive() ) { ?>
<header class="page-header">
<h1 class="page-title"><?php _e( 'Question & Answer', 'dw-simplex' ); ?></h1>
</header>
<?php } ?>
<div class="container-fluid">
<div class="row-fluid">
<div id="primary" class="span12">
<div id="content" role="main">
<div class="dwqa-container">

file content-end-wrapper.php :

</div>
</div><!-- .entry-content -->
</div>
</div><!-- #page-<?php the_ID(); ?> -->

We do not include the page title of archive page of DWQA because we want it to be flexible in case you want to use DWQA as your homepage and the page title is not necessary.

Regards

Powered by DW Question & Answer Pro