Marco Mark
asked 10 years ago

Hi. There is a display problem with the Questions page when the user is logged out. I have narrowed it down to being a problem with the dwqa-filter-by-category drop down. For some reason the “All” link is generated with a ‘ at the beginning of the href and a ” at the end of the href, causing all sorts of display problems. This doesn’t happen when the user is logged in.
Logged out source: 

<ul id="dwqa-filter-by-category" class="category-list" data-selected="all"><li class='cat-item-all'><a href='http://myurl/" >All</a>

Logged in source: 

<ul id="dwqa-filter-by-category" class="category-list" data-selected="all"><li class='cat-item-all'><a href='http://myurl/'>All</a>
5 Answers
DominicStaff
answered 10 years ago

Please tell me detail about this issue, you can send me your site & a screenshot for further checking.
Regards,

Marco Mark
replied 10 years ago

Hi. Please see http://new.cryogas.com/community/ when logged out. The “Select a category” drop down menu is broken, causing the sidebar to show below the main content. It’s caused by the code I highlighted in my original post. After logging in, the drop down menu works correctly and the sidebar also shows up correctly.

DominicStaff
answered 10 years ago

– I know what you want for your site. However, unfortunately, we don’t support to create the subcategory yet as you prefer. Again, sorry about that
– To resolve the issue with the sidebar in your site, you can do as the following:
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
– Add the following code to the content-start-wrapper.php file.

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

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

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

If you still face there issue, you can send me username & password of your site for further checking.
Hope this helps !

Marco Mark
replied 10 years ago

I’m not sure I follow. I don’t have any question sub-categories and the drop down menu works fine once the user has logged in. I also, already highlighted that there is a code error, the href for the “ALL” category has a ‘ at the beginning and a ” at the end?! I cannot fix this without editing the core plugin files, hence why it needs to be addressed at your end. I am using DW Focus which I thought was all ready for the DW Question plugin, so I don’t think this is style related.

Dominic Staff
replied 10 years ago

Of course! I have checked on our demo and nothing happens. It still work fine with the DW Q&A plugin. So, I need your username & password of your site for further checking.
Regards,

DominicStaff
answered 10 years ago

Right now, you can check your site. We have helped you fix this issue.

Marco Mark
answered 10 years ago

Thanks Dominic. Are you able to tell me what was changed please so I can mirror my local test install and scm repository?
Regards,
Marco

DominicStaff
answered 10 years ago

It’s kind of hard to let you know exactly what and which files our technical members have already done for you after a long time. Sound incredible but it’s true. Sorry about that, my friend and thanks for your understanding.
Regards,

Powered by DW Question & Answer Pro