This topic has 13 replies, 3 voices, and was last updated 8 years, 5 months ago ago by Eva Kemp
Hello I am new at this but have googled for hours on this problem and still can’t get it quite right.
I need to make WooPress compatible with Sensei and to do so I simply plug in the start and end wrappers in the child theme’s functions.php: https://docs.woothemes.com/document/sensei-and-theme-compatibility/
Can someone show me really quick where that is? I am trying to make it have a sidebar on the right, also. The code from the page.php didn’t work:
<div class=”container content-page”>
<div class=”page-content sidebar-position-<?php esc_attr_e( $l[‘sidebar’] ); ?> sidebar-mobile-<?php esc_attr_e( $l[‘sidebar-mobile’] ); ?>”>
<div class=”row”>
<div class=”content <?php esc_attr_e( $l[‘content-class’] ); ?>”>
Thank you!
Hello,
Please show a direct page where you have issue with template and provide FTP credentials.
Regards,
Eva Kemp.
An example page is http://carlasonheim.com/2016/lesson/lesson-1-mini-drawing-blast/.
Here the sidebar is not showing and part of the content is outside of the wrapper on smaller screens.
Thank you!
Hello,
Sidebar doesn’t work due to absence of the file courses_sidebar.php you included here:
function my_theme_wrapper_end() {
echo '</div><!--end of content-->';
include 'courses_sidebar.php';
echo '</div><!--end of row-->';
}
As for the problem with content displaying on small screens try to use the following css code in your child style.css:
@media only screen and (max-width: 768px) {
.single-lesson .fix {
padding-left: 60px;
padding-right: 60px;
}}
Best regards,
Jack Richardson.
The sidebar is now showing at the bottom (thanks for pointing out the wrong file). I used this code:
function my_theme_wrapper_end() {
echo '</div><!--end of content-->';
echo '</div><!--end of row-->';
get_sidebar();
}
The padding fix for the content works pretty well but doesn’t apply to the title (which I am going to take out anyway). Also, the content on large screens is wider than the wrapper by about 60px. I am hoping getting the correct my_theme_wrapper_start code will fix all this.
Here is what I currently have (taken from another site).
function my_theme_wrapper_start() {
echo '<div class="row"><div class="content col-xs-12 col-sm-12 col-md-8 col-lg-8">';
}
I just need to know what div class to put it I think. Thank you!
function my_theme_wrapper_end() {
echo '</div><!--end of content-->';
get_sidebar();
echo '</div><!--end of row-->';
}
The sidebar is now showing to the right. As soon as I find the correct div class I think I’m done. 🙂
Hello,
Is your problem fixed? Do you need our help?
Best regards,
Jack Richardson.
Hello!
It is not fixed quite yet. I think I just need to know what to put in the blanks for it to work properly:
function my_theme_wrapper_start() {
echo '<div class="_____________"><div class="______________">';
}
Thanks!
Hello,
You used correct code:
function my_theme_wrapper_start() {
echo '<div class="row"><div class="content col-xs-12 col-sm-12 col-md-8 col-lg-8">';
}
Please clarify what was wrong with display?
Best regards,
Jack Richardson.
The columns are both too small and too far left. The div class=”content col-xs-12 col-sm-12 col-md-8 col-lg-8″ was from a different site and theme because I couldn’t find the correct div class in this theme.
Hello,
I’ve edited the code to this one:
function my_theme_wrapper_start() {
echo '<div class="st-pusher" style="background-color:#fff;">
<div class="st-content">
<div class="st-content-inner">
<div class="page-wrapper">
<div class="container"><div class="row"><div class="content col-xs-12 col-sm-12 col-md-9 col-lg-9">';
}
function my_theme_wrapper_end() {
echo '</div><!--end of content-->';
get_sidebar();
echo '</div><!--end of row--></div></div></div></div></div>';
}
Please check the page now and clear browser cache before.
Best regards,
Jack Richardson.
That did it, thank you so much for all your help!
Hello,
You are welcome.
Regards,
Eva Kemp.
The issue related to '‘How to find theme wrapper div class’' has been successfully resolved, and the topic is now closed for further responses