Nat King
asked 10 years ago

Hi! I’m trying to get the Style Integration working, and I’m stuck on Step 2: Edit Content Wrapper files.

My page.php is a little more complicated than the one in your example, and I’m not sure what information I should be adding to the content-start-wrapper.php file.

Can you advise what is the correct Content-Wrapper that I should be adding?

I have copied my page.php at the bottom.

Thanks for your help!

Here is my page.php

 * Page Template
 * This template is the default page template. It is used to display content when someone is viewing a
 * singular view of a page (‘page’ post_type) unless another page template overrules this one.
 * @link
 * @package WooFramework
 * @subpackage Template

    <!– #content Starts –>
    <?php woo_content_before(); ?>
    <div id=”content”>
        <div id=”main-sidebar-container”>    

            <!– #main Starts –>
            <?php woo_main_before(); ?>
            <section id=”main”>                     
    if (have_posts()) { $count = 0;
        while (have_posts()) { the_post(); $count++;
            woo_get_template_part( ‘content’, ‘page’ ); // Get the page content template file, contextually.
            </section><!– /#main –>
            <?php woo_main_after(); ?>
            <?php get_sidebar(); ?>

        </div><!– /#main-sidebar-container –>         

        <?php get_sidebar( ‘alt’ ); ?>

    </div><!– /#content –>
    <?php woo_content_after(); ?>

<?php get_footer(); ?>

2 Answers
answered 10 years ago

Hi Natking !
Please send me your site for further checking.

Nat King
replied 10 years ago

Hi Dominic,

I have Q&A installed here:

Let me know if you need anything else. Thanks!

answered 10 years ago

Hi Nat !
Please add the following code to the content-start-wrapper.php

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

– Add the following code to the content-end-wrapper.php file:

    <?php get_sidebar(); ?>    
     </div><!– /#main-sidebar-container –>   
 </div><!– /#content –>

Hope this helps !

Powered by DW Question & Answer Pro