priyam
asked 8 years ago

i am having a problem that the layout of dw answers plugin going 100% wide throughout the whole browser. i am got getting which part to chose as a content-header wrapper. 
can you tell me i am giving a part of my page.php.

<?php if ( !defined( ‘ABSPATH’ ) ) exit;
/*
1 – RETRIEVE DATA
2 – PAGE
2.1 – Breadcrumbs
2.2 – Article
– Title
– Content
2.3 – Pagination
2.4 – Comments
2.5 – Sidebar
*/
/*===============================================
R E T R I E V E D A T A
Get a required page data
===============================================*/
global
$st_Settings;
$st_ = array();
// Is title disabled?
$st_[‘title_disabled’] = st_get_post_meta( $post->ID, ‘disable_title_value’, true, 0 );
// Is breadcrumbs disabled?
$st_[‘breadcrumbs_disabled’] = st_get_post_meta( $post->ID, ‘disable_breadcrumbs_value’, true, 0 );

// Get custom sidebar
$st_[‘sidebar’] = st_get_post_meta( $post->ID, ‘sidebar_value’, true, ‘Default Sidebar’ );
// bbPress sidebar sidebar
if ( $st_Options[‘sidebars’][‘bbPress’] && function_exists(‘is_bbpress’) ) {
if ( is_bbpress() ) {
$st_[‘sidebar’] = ‘bbPress Sidebar’; }
}
// buddyPress sidebar sidebar
if ( $st_Options[‘sidebars’][‘buddyPress’] && function_exists(‘is_buddypress’) ) {
if ( is_buddypress() ) {
$st_[‘sidebar’] = ‘BuddyPress Sidebar’; }
}
// Get sidebar position
$st_[‘sidebar_position’] = st_get_post_meta( $post->ID, ‘sidebar_position_value’, true, ‘right’ );
// Re-define global $content_width if sidebar not exists
if ( $st_[‘sidebar_position’] == ‘none’ ) {
$content_width = $st_Options[‘global’][‘images’][‘large’][‘width’]; }
else {
$content_width = $st_Options[‘global’][‘images’][‘archive-image’][‘width’]; }

/*===============================================
P A G E
Display a required page
===============================================*/
get_header();
?>
<div id=”content”>

<div id=”content-layout”>
<div id=”content-holder” class=”sidebar-position-<?php echo $st_[‘sidebar_position’]; ?>”>

<div id=”content-box”>

<div>
<div>
<?php

if ( have_posts() ) :

while ( have_posts() ) : the_post();

/*——————————————-
2.1 – Breadcrumbs
——————————————-*/

if ( $st_[‘breadcrumbs_disabled’] != 1 && !is_front_page() && function_exists( ‘st_breadcrumbs’ ) ) {
st_breadcrumbs(); }

/*——————————————-
2.2 – Article
——————————————-*/ ?>
<article><?php

2 Answers
Guru
answered 8 years ago

The quickest and easy solution can be provided by the DW team if you provide them your ftp and login access details via private answer. After which they can check your site and the content wrapper to suit your theme.

priyam
replied 8 years ago

yeah, but actually i am testing it on my localhost before uploading in ftp.

DominicStaff
answered 8 years ago

Hello Priam! 
Please find here for the document guide on how to integration DW Q&A with your theme: 
http://cmspioneer.com/designwall/guide/dw-question-answer-plugin/#Style_integration
Regards,

Powered by DW Question & Answer Pro