Genesis and Sensei plugin

Community Forums Forums General Discussion Genesis and Sensei plugin

This topic is: not resolved

Tagged: 

This topic contains 25 replies, has 9 voices, and was last updated by  Kellylise 1 month, 2 weeks ago.

Viewing 15 posts - 1 through 15 (of 26 total)
  • Author
    Posts
  • #42188

    bmaven
    Participant
    Post count: 44

    Hi all,

    I’m building a site on Genesis and everything is working great with WooCommerce. However, for the Sensei plugin, the page layout is messed up. I need to be able to choose the Sidebar-Content layout but there is no option on the lesson edit page for this. For WooCommerce there’s the Genesis-WooCommerce Connect plugin – I’m assuming there isn’t anything already existing for the interface of Genesis and Sensei…but can anyone help? If we need to talk about a subcontracted solution, let me know – I *really* need this to work. :)

    Here’s the site: http://173.236.53.234/~fairydus/

    …and here’s the messed-up page layout as it stands now: http://173.236.53.234/~fairydus/lesson/lesson-1/

    Warmly,
    Jeni Elliott


    Blogging growth strategist & revenue coach at The Blog Maven, fearless leader of 3 preschoolers…tweeting it up @theblogmaven

    http://173.236.53.234/~fairydus/lesson/lesson-1/
    #42191

    anitac
    Participant
    Post count: 7004

    Hi @BMaven, a developer named David Chu assisted with this issue on this forum discussion – However, the solution is not there. His Twitter handle is @flamenquito. You can contact him there, but I will Ping him on Twitter to see if he can bounce over and assist you.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #42358

    And_or
    Participant
    Post count: 42

    @bmaven I would be really grateful if you could share your solution if you find one.. I tried to use Sensei before and had a short communication with Woothemes about the problem, but a the time it could not be solved in a simple way, this was just after Sensei was released.

    Because the client did not have time to wait I changed to another plugin. Still the plugin looked very promising and I would really be interested in a solution… or just to know if I can forget about using the plugin in the near future.

    Thanks in advance.. :-)


    Simplicity is not Simple Webtaurus

    #42370

    essaysnark
    Participant
    Post count: 336

    @bmaven and @And_or, I have never worked with the Sensei plugin so I don’t know how it’s constructed, however did you already try this standard Genesis solution? If there’s a template for the Lesson CPT (lesson-single.php) then you should be able to put this in:
    [php]
    // Force Sidebar-Content Layout
    add_filter( ‘genesis_pre_get_option_site_layout’, ‘__genesis_return_sidebar_content’ );
    [/php]

    (From Brian Gardner: http://www.briangardner.com/code/force-layout-setting/ )

    If there’s no template, you can try creating one and add it – not sure if that’s doable with Sensei or not. Or possibly this plugin can help?

    http://wordpress.org/plugins/genesis-layout-extras/

    It works with WooCommerce so maybe there’s a chance.

    On my own site, I tried adding that filter into functions.php with a conditional check for the CPT, but I didn’t get it to work. If you’re still stuck I can keep playing with it to see – or maybe David will swoop in with an answer quicker than that!

    #42374

    anitac
    Participant
    Post count: 7004

    @Essaysnark, the issue is this screen shot from Woocommerce about the page template – http://cld.wthms.co/mOsP. The last bit to the installation is coding this page with the appropriate configuration for the Genesis Framework. That’s a bit of information that “NO ONE” is willing to provide. David Chu provided a fix to someone else to get theirs going. I sent out a Tweet to him the other day asking if he could provide the same for here but as far as I know – he hasn’t been in contact with anyone. Seems that this is the BIG SECRET that everyone wants to keep to themselves, which is making it harder for me as a moderator. Now, I’ve been told that “I do not have to provide this answer to anyone – that people who want to know can hire a developer to do this.” That’s what the other person said they did – they paid him for help.

    It’s unfortunate that no one is willing to assist with this. I already inquired with SP Support and did not receive a favorable response.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #42377

    essaysnark
    Participant
    Post count: 336

    Gotcha!!

    Yeah, we’ve been frustrated at times too by how some WordPress plugin developers are more closed/proprietary than what WordPress is known for.

    Thanks for the explanation. I’ll take my simple solutions back and will watch this thread to see how it turns out. :-) Good luck everyone!

    #42381

    bmaven
    Participant
    Post count: 44

    Hi Folks,

    I started a thread on the G+ group and it sounded like @david-decker was going to be working on a solution via a plugin. There are lots of people (via Twitter and G+) who are following this!

    @david-decker please let me know if you need to test the solution on my site. I’ll gladly get you a login!

    Warmly,
    Jeni Elliott
    bmavendesign.com


    Blogging growth strategist & revenue coach at The Blog Maven, fearless leader of 3 preschoolers…tweeting it up @theblogmaven

    #42429

    And_or
    Participant
    Post count: 42

    I dug out my test install for the Sensei Plugin and did some testing with the code that I found in another sensei topic

    /**** Theme Compatibility for Integrating Sensei with Genesis Framework/Child Theme *********/
    remove_action( ‘sensei_before_main_content’, ‘sensei_output_content_wrapper’, 10 );
    remove_action( ‘sensei_after_main_content’, ‘sensei_output_content_wrapper_end’, 10 );

    add_action( ‘sensei_before_main_content’, ‘edu_theme_wrapper_start’, 10 );
    add_action( ‘sensei_after_main_content’, ‘edu_theme_wrapper_end’, 10 );

    function edu_theme_wrapper_start() {
    do_action( ‘genesis_before_content_sidebar_wrap’ );
    echo ‘<div id=”content-sidebar-wrap”><div id=”content”>’; //edited here afterwards
    }

    function edu_theme_wrapper_end() {
    echo ‘</div></div>’;
    }

    I only needed to change the line with id=content as it turned out to introduce a second id=content in the page. After changing the about code to:  <div id=”content-sensei”> the sidebar on my page would show up normally.

    The layout needed some css fixing, but that was not too hard.
    It is probably different for each template, in this case the lines:

    .post-type-archive-lesson #content {
    padding: 0;
    }

    #content-sensei {
    padding: 0 0 0 30px;
    width: 580px;
    float: left;
    }

    were enough to fix the layout for this (older) template. It has different sidebars for home and primary, so I guess the simple sidebars or conditional sidebars will probably work.

    Maybe in other themes the <div id=”content-sidebar-wrap”> needs to be a different one when you also use the sidebar-alt ?

    Hope this helps…


    Simplicity is not Simple Webtaurus

    • This reply was modified 1 year, 2 months ago by  And_or.
    • This reply was modified 1 year, 2 months ago by  And_or.
    • This reply was modified 1 year, 2 months ago by  And_or.
    • This reply was modified 1 year, 2 months ago by  And_or.
    #42455

    And_or
    Participant
    Post count: 42

    I did another test with a base theme for Genesis 2.0 that I found on the forum. (Thanks Greg!)

    http://www.studiopress.com/forums/topic/new-html5-base-child-theme-with-2-0-kept-in-mind/

    used the same php in the functions file. The css needed turned out to be only:

    `
    #content-sensei {
    padding: 0 0 0 30px;
    width: 580px;
    float: left;
    }`

    #content{
    width: 100%;
    }

    I did only a very short test with an imported course & lessons, but the display looked normal…


    Simplicity is not Simple Webtaurus

    #42459

    bmaven
    Participant
    Post count: 44

    Thanks for posting this solution, @And_or. I’ll take a look this afternoon at how it works with my site. I appreciate you. :)

    Warmly,
    Jeni Elliott
    bmavendesign.com


    Blogging growth strategist & revenue coach at The Blog Maven, fearless leader of 3 preschoolers…tweeting it up @theblogmaven

    #42466

    And_or
    Participant
    Post count: 42

    Sorry I did not use <code> in the right way, you probably have to change the ‘ (what do you call them apostrophe?) in the code…


    Simplicity is not Simple Webtaurus

    #42876

    David Chu
    Participant
    Post count: 1317

    Hi.
    I’m traveling, and am not working right now. Apparently I now have a reputation for being not only a Woo Sensei Guru, but also for being a Terrible Mean person hoarding Valuable Information. Incredible, especially given how many free fixes I’ve provided on this forum. :-) Well, since it may help someone, I’ll pass along some of my thought process. It’s actually very mundane, not exciting at all, probably not even directly helpful, but who knows, maybe it will get someone on the right track.

    I don’t own Sensei, so I can’t even request Woo tech support. They do have bits of documentation laying about, though. Here’s a bit of applicable documentation. As far as I can tell, Sensei is not fully baked.

    I have seen 2 Sensei setups so far. The first one didn’t even have any Sensei CSS. This was the clearest indication that it wasn’t fully baked. So here’s the first Big Secret: I didn’t even try the documentation above. I just wrote CSS for the Sensei markup. Then the page looked fine.

    Then I saw another setup. This one DID have some Sensei CSS, but still looked pretty weird. This site may have had a newer Sensei setup, where Woo rushed out some new code to apply triage to problems customers were having, but I can’t be sure of that. So big secret #2, I wrote CSS to make that one look better, too.

    Neither site’s themes had much in common, in fact, all WP themes are different, so even if I provided the exact CSS, neither would have worked on any site without some re-coding. It’s like nailing down Jello. Which brings up big secret #3: even though Genesis is simply wonderful, if someone wants to work on small appearance details, some CSS ability is required, and if one is going to implement template surgery as described in the link above, PHP skills will be needed. Above all, pro developer troubleshooting skills may be needed for any major changes.

    I took a look at Maven’s site, but could not see exactly what was wrong with it. Maybe it’s fixed already? Again, not being an owner of Sensei, I don’t know what to expect with its look on every screen, nor did I know what Maven wanted her page to look like.

    I can tell you this: if your page looks wretched, take a look at the HTML. The Sensei part may have a DIV or other element that needs to be re-sized or otherwise re-styled. Look for classes or ID’s the are attached to it, and experiment. If that doesn’t work, you can experiment with the documentation that Woo provides.

    I’ve worked on altering Woo themes, too. They are downright cute, but are very heavily styled, so making big changes in them often requires significant, not just minor, CSS ability. I’ve even written blog articles about that. I can’t get Woo support for those, either, so I use my experience that I’ve gained by struggling for incalculable hours with theme styling, programming, and troubleshooting.

    Maybe that will help someone, but maybe not. And sorry, I’m still traveling, so I won’t be responding rapidly to this forum thread.

    Dave


    Dave Chu · Custom WordPress Developer – likes collaborating with Designers

    #42891

    anitac
    Participant
    Post count: 7004

    Oh no David! That wasn’t the intent … to make you look bad or anything. And the community forum clearly states that answers are NOT guaranteed. I personally made mention of you in a previous discussion because another person had this problem and stated they paid you for the answer and they did not share the answer. But that was in no way meant to make YOU look bad. And we know you don’t work for Woo or the Sensei folks. But in my opinion if SP is working so closely with the Woo team, they should at least offer this fix to the people who buy Sensei – it’s a paid product. So when someone pays for a product and they cannot get it to work properly – you expect someone on either side will provide a clear answer which neither side has. The Sensei plugin is still new and there’s a lot of people using Genesis who are at their wits end because they cannot get that one piece to work.

    I do know someone was trying to help the Maven offline and maybe they resolved it. So it’s nothing for anyone to really worry about. It’s not going to kill anyone so people just need to wait it out.

    Have a safe trip.


    Let me help you customize your theme, responsive header, Buddypress, Agentpress or technical issue!
    Visit me here: Cre8tiveDiva.com | Tweet Me! | Plus Me!
    When asking for help, please provide a link or screen shot showing your problem!

    #42898

    bmaven
    Participant
    Post count: 44

    Good morning! Thanks so much to @flamenco for weighing in here. We did end up coming up with a solution, though as you guessed, it was a pure CSS fix for every element. It’s amazing to me that with as many Genesis people who also like to use Woo’s plugins like WooCommerce and Sensei, the folks at Woo don’t provide any support for integrating them with Genesis.

    For anyone else who looks at this thread, I’ll give the CSS we used just for the single lesson page, though it’s going to be specific to my custom theme (which is sidebar-content):

    `/* WooSensei fixes */

    .single-lesson #content {
    width: 100%;
    }

    .single-lesson #main {
    -moz-box-sizing: border-box;
    box-sizing: border-box;
    padding: 0 10px 40px 12px;
    padding: 0 .625rem 2.5rem .75rem;
    float: right;
    width: 64.171123%
    }
    `

    (Thanks to @hard-boiled-greg for the solution!)

    I’ll still have to fix the lesson archive; with Woo, it seems like you just have to nail down all the moving parts and get them with CSS.

    Thanks so much, everyone, for your support on this issue. I hope this discussion will be helpful to other people going forward…and may even inspire someone (hint hint, Woo) to come up with a one-size-fits-all solution for Genesis users.

    Warmly,
    Jeni


    Blogging growth strategist & revenue coach at The Blog Maven, fearless leader of 3 preschoolers…tweeting it up @theblogmaven

    #42901

    essaysnark
    Participant
    Post count: 336

    Just for the record, I’ve found Dave’s input here on the forum, and the knowledge he shares so freely on his site, to be immensely valuable.

    Dave, I hope you’re traveling somewhere fun!

    To the others, great to see the solutions, and thanks for posting them!

Viewing 15 posts - 1 through 15 (of 26 total)

You must be logged in to reply to this topic.