RAMA MURTHY PATHURI
asked 10 years ago

I used shortcodes for ‘all questions’ and ‘submit question’ and they are working fine within the wordpress theme.
Using SUFFUSION theme.
website : http://www.nammavidyaranyapura.org/question/1-bhk-house/
Have trouble with SINGLE QUESTIONS page sidebar.
Did tinkering with php file (see below) and bought the sidebar within the ‘container’.
But still the sidebar is going down.
Any solution?
content-end-wrapper.php file :
—————————————————————————————————–
<?php
if ( ! defined( ‘ABSPATH’ ) ) exit; // Exit if accessed directly
$template = get_option(‘template’);
switch( $template ) {
case ‘twentyeleven’ :
case ‘twentytwelve’ :
case ‘twentythirteen’ :
echo ‘</div></div>’;
get_sidebar();
break;
case ‘twentyfourteen’:
echo ‘</div></div></div>’;
get_sidebar();
break;
case ‘Circles’:
echo ‘</div></div>’;
ts_get_single_post_sidebar(‘right2’);
ts_get_single_post_sidebar(‘right’);
echo ‘</div></div></div>’;
break;
default:
}
?>
—————————————————————————————
content-start-wrapper.php file
—————————————————————————————
<?php
if ( ! defined( ‘ABSPATH’ ) ) exit; // Exit if accessed directly
$template = get_option(‘template’);
switch( $template ) {
case ‘twentyeleven’ :
echo ‘<div id=”primary”><div role=”main”>’;
break;
case ‘twentytwelve’ :
echo ‘<div id=”primary” class=”site-content”><div role=”main”>’;
break;
case ‘twentythirteen’ :
echo ‘<div id=”primary” class=”site-content”><div role=”main” class=”entry-content twentythirteen”>’;
break;
case ‘twentyfourteen’:
echo ‘<div id=”primary” class=”content-area”>
<div id=”content” class=”site-content” role=”main”><div class=”entry-content”>’;
break;
case ‘Circles’:
get_template_part(‘inc/header-image’);
echo “<div class=’wrapper’><div class=’container main’>”;
ts_get_single_post_sidebar(‘left’);
ts_get_single_post_sidebar(‘left2’);
echo “<div class=’post-area grid_”.ts_check_if_any_sidebar(12,9,6).”‘><div>”;
break;
default:
}
?>
<?php if( is_page() ) { ?>
<header class=”dwqa-page-header”>
<h1 class=”dwqa-page-title”><?php the_title(); ?></h1>
</header>
<?php } ?>
—————————————————————————————————————————————————–

RAMA MURTHY PATHURI
replied 10 years ago

Is there any possibility of short-code for single question page?

RAMA MURTHY PATHURI
replied 10 years ago

I did some tinkering with CSS and was able to get reasonably good answer to my problem :
.single-dwqa-question .dwqa-container {width: 670px;margin: 0px;padding: 0px;position: absolute;margin-top: 20px;}
.single-dwqa-question #sidebar-shell-1 {width: 330px; display: block;margin: 0px;float: right;}
Because of the above footer was going hey-wire.
Finally, I had to use FIXED for page-footer as below :
.single-dwqa-question #page-footer {position: fixed;}
Though it is NOT a neat/nice solution to my problem.
But it is satisfactory to me without loosing any functionality and design.
Await a permanent solution, if possible.
Also, please consider short-code for single/archive question, similar to all/submit question,
so that DWQA can fit smoothly into a any theme without using the DWQA wrappers etc.

2 Answers
RAMA MURTHY PATHURI
answered 10 years ago

Have you received login details through private answer?
Pl reply.

RAMA MURTHY PATHURI
answered 10 years ago

****SOLVED*****
Looks like the below files solved my SIDEBAR going down problem.
Also it has solved all other problems connected to adsese widgets, footer placement etc…
///// content-start-wrapper.php/////
<?php
if ( ! defined( ‘ABSPATH’ ) ) exit; // Exit if accessed directly
$template = get_option(‘template’);
switch( $template ) {
case ‘twentyeleven’ :
echo ‘<div id=”primary”><div role=”main”>’;
break;
case ‘twentytwelve’ :
echo ‘<div id=”primary” class=”site-content”><div role=”main”>’;
break;
case ‘twentythirteen’ :
echo ‘<div id=”primary” class=”site-content”><div role=”main” class=”entry-content twentythirteen”>’;
break;
case ‘twentyfourteen’:
echo ‘<div id=”primary” class=”content-area”>
<div id=”content” class=”site-content” role=”main”><div class=”entry-content”>’;
break;
case ‘Circles’:
get_template_part(‘inc/header-image’);
echo “<div class=’wrapper’><div class=’container main’>”;
ts_get_single_post_sidebar(‘left’);
ts_get_single_post_sidebar(‘left2’);
echo “<div class=’post-area grid_”.ts_check_if_any_sidebar(12,9,6).”‘><div>”;
break;
default:
echo ‘<div id=”main-col”><div id=”content”>’;
break;
}
?>
<?php if( is_page() ) { ?>
<header class=”dwqa-page-header”>
<h1 class=”dwqa-page-title”><?php the_title(); ?></h1>
</header>
<?php } ?>
///////////////////////////////////////
///////content-end-wrapper.php////////
</div>
</div>
///////////////////////////////////

Powered by DW Question & Answer Pro