Karel Balac
asked 11 years ago

Hi, i’ve got problem with my sidebar on DWQA pages:
http://gizchina.cz/dotazy-a-odpovedi/
http://gizchina.cz/polozit-dotaz/
on Home page it looks http://gizchina.cz/
Can someone help me? Thanks

Dominic Staff
replied 11 years ago

Please send me username & password of your site (via private anser). We will help you resolve it.

Karel Balac
replied 11 years ago

Hi Dominic, did you found something?

2 Answers
DominicStaff
answered 11 years ago

To display the sidebar on the Q&A page, you can log in to Dashboard > Editor, open content-end-wrapper.php file, you can replace the following code:

  </div>
        <?php if ( 'left' == $sidebar_position || 'right' == $sidebar_position ) : ?>
        <aside id="page-sidebar" class="sidebar-wrapper col-sm-5 col-md-4">
            <?php get_sidebar(); ?>
        </aside>
        <?php endif; ?>

    </div>
</div>
<?php get_footer(); ?>

With new code:    

</div>
        <aside id="page-sidebar" class="sidebar-wrapper col-sm-5 col-md-4">
            <?php get_sidebar(); ?>
        </aside>
    </div>
</div>
<?php get_footer(); ?>

Hope this helps !

Karel Balac
replied 11 years ago

Thanks! It works! 🙂

Karel Balac
replied 11 years ago

Hi Dominic, my QA pages are working, but question post looks like this:

http://gizchina.cz/dotaz/test-dotaz/

Could you please help me again?

Thanks!

DominicStaff
answered 11 years ago

Hi Karel,
This issue may come from a different plugin in your site. Firstly, please deactivate  all plugins to see if this resolves the problem. If this works, re-activate the plugins one by one and let us know if you find the problematic plugin(s). Maybe there is a conflict in plugins.

Karel Balac
replied 11 years ago

Hi Dominic, disabling plugins not works for me. I changed start wrapper to:

$sidebar_position = get_post_meta( get_queried_object_id(), ‘vw_page_sidebar_position’, true );
$sidebar_position_class = ”;
if ( ‘left’ == $sidebar_position ) {
$sidebar_position_class = ‘sidebar-left’;
} else if( ‘right’ == $sidebar_position ) {
$sidebar_position_class = ‘sidebar-right’;
} else {
$sidebar_position_class = ‘sidebar-hidden’;
}
?>




Now its better, but sidebar is under Question. On Q&A pages it works.

http://gizchina.cz/dotaz/problem-so-zapinanim-displeja/
http://gizchina.cz/dotazy-a-odpovedi/

Thanks for your help

K.

Karel Balac
replied 11 years ago

Im dumb ass. Solved! Thanks for your help and time! 🙂

Powered by DW Question & Answer Pro