HI! Can someone help me, please, with theme integration? I made the steps, but I have a problem with content-start-wrapper.php, I think.I put this in my file
<?php if( is_page() ) { ?> <header> <h1><?php _e( 'Question & Answer', 'point' ); ?></h1> </header> <?php } ?> <div> <div>
But my page.php is like this
<?php $mts_options = get_option(‘point’); ?>
<?php get_header(); ?>
<div id=”page” class=”single”>
<div class=”content”>
<article class=”article”>
<div id=”content_box” >
<?php if ( have_posts() ) while ( have_posts() ) : the_post(); ?>
<div id=”post-<?php the_ID(); ?>” <?php post_class(‘g post’); ?>>
<div class=”single_page”>
<header>
<h1 class=”title”><?php the_title(); ?></h1>
</header>
<div class=”post-content box mark-links”>
<?php the_content(); ?>
<?php wp_link_pages(array(‘before’ => ‘<div class=”pagination”>’, ‘after’ => ‘</div>’, ‘link_before’ => ‘<span class=”current”><span class=”currenttext”>’, ‘link_after’ => ‘</span></span>’, ‘next_or_number’ => ‘next_and_number’, ‘nextpagelink’ => __(‘Next’,’mythemeshop’), ‘previouspagelink’ => __(‘Previous’,’mythemeshop’), ‘pagelink’ => ‘%’,’echo’ => 1 )); ?>
</div><!–.post-content box mark-links–>
</div>
</div>
<?php comments_template( ”, true ); ?>
<?php endwhile; ?>
</div>
</article>
<?php get_sidebar(); ?>
<?php get_footer(); ?>
How must my content-start-wrapper.php looks like?
Now my sidebar apears only in page and posts. Doesn’tapear on landing page and questions page. My landing page is Question List. Before to make this changes the sidebar was down instead of right. The adress is http://goo.gl/nsHAQs
Hi Marian !
– Please add the following code to the content-start-wrapper.php file:
<?php get_header(); ?>
<div class="home-page" id="page">
<div class="content">
<div class="article">
<?php if( is_page() || is_archive() ) { ?>
<header class="entry-header">
<h1 class="entry-title"><?php _e( 'Question & Answer', 'dw-focus' ); ?></h1>
</header>
<?php } ?>
– Please add the following code to the content-end-wrapper.php file:
</div>
<?php get_sidebar(); ?>
</div>
</div>
Hope this helps !
Thx! Is working!
Hi. I am having the same problem as Marian. I would like to understand what the logic is behind putting these two files together (start and end) and somewhow the DWQA is rendered in between.
Does it have to do with template hierarchy? Thanks.
Firstly you have to create three new files named content start wrapper ,end wrapper and style.css by yourself as guided in the style integration file,then to resolve the sidebar issue just open your content end wrapper and add <?php get_sidebar(); ?> just affter the second last closing div tag
I do all that. But i Undrestand ca’s content start wrapper is different, deppends on page.php. I will do that again. and i will come back with the answer
i think you dint noticed i asked you to edit the content end wrapper and add the required code i suggested above and not the content start wrapper your content end wrapper should look like this to get a sidebar
i dont remember the exact no. of division just add the code after second last closing div
Hello Marian !
We have checked your site, I think you have disabled DW Q&A plugin, please restore the plugin and send me your link for further checking, we will help you resolve this issue.
Hi Dominic. The plugin is available again! http://goo.gl/nsHAQs
Please login or Register to submit your answer
replied 11 years ago
this is the part you need to do before doing what i suggested in my answer below http://cmspioneer.com/designwall/guide/dw-question-answer-plugin/#Style_integration
replied 11 years ago
there is nothing you need to do with page.php
replied 11 years ago
@well wisher. I had a similar concern. That part was very confusing to me and it’s part of the reason why I asked this question (http://cmspioneer.com/designwall/question/after-reading-the-dwqa-guide-buddypress-section-my-profile-page-does-not-look-like-your-profile-page-why/). What are your thoughts?
replied 11 years ago
just answered your question @blue928 (blue presley)