- This topic has 13 replies, 1 voice, and was last updated 5 years, 6 months ago by
cjenti.
-
AuthorPosts
-
November 16, 2018 at 5:01 pm #729402
Mike
Using the LearnPress plugin. At the Lesson level, the pages can’t be tweaked in Customize. Is it possible to wrap these pages so that Customize global container settings apply?
November 16, 2018 at 5:59 pm #729437Tom
Lead DeveloperLead DeveloperHi there,
Does LearnPress have any instructions for integration with themes? I assume they must have some sort of option to make their plugin work with any theme.
November 16, 2018 at 6:27 pm #729446Mike
LearnPress lets you override its own templates by copying the template folder to the theme folder and renaming it “learnpress”.
The higher level pages work within GP.
November 17, 2018 at 8:27 am #729814Tom
Lead DeveloperLead DeveloperSo there are no specific instructions for theme integration? That’s strange.
So what I would do is create a new file in the
learnpresschild theme folder namedcontent-single-item.php(at least I think that’s the template we’re working with?).Then, make the contents of that file the same as the theme
single.php: https://github.com/tomusborne/generatepress/blob/master/single.phpThen copy what’s currently in their file (highlighted): https://github.com/LearnPress/learnpress/blob/develop/templates/content-single-item.php#L18-L40
And replace the following in the new file you created with it: https://github.com/tomusborne/generatepress/blob/master/single.php#L26-L43
November 17, 2018 at 1:22 pm #729907Mike
Thanks! I will attempt and post back.
There is a LearnPress docs wiki, with a section on theming, but unfortunately it’s still blank (it was mentioned in another GP forum post).
November 18, 2018 at 7:08 am #730270Mike
That didn’t work, I think I have to find the right template. It’s a tangle of CSS in there, the GP code appears to be in the page source, but overridden.
I will try to untangle it, and ask for help here if there’s something very specific.
Will reopen this thread if there are positive results!
Thanks!!!
November 18, 2018 at 10:43 am #730407Tom
Lead DeveloperLead DeveloperNo problem – here if you need us 🙂
November 28, 2018 at 10:34 am #743020Mike
Been plugging away at this. To recap: LearnPress custom post type Lesson pages are not displaying properly within the GP page template (link in original post).
- global $template; shows page.php.
- The page source shows everything properly nested, but in Inspect Element, most of the LP content code appears after GP site footer.
- On the displayed page, the LearnPress content appears on top of the GP page template content (primary nav, sidebar, etc) – I can position down (top:) the LP content to show the GP content.
It seems that for rendering, something is popping the LP content out of the GP HTML order.
Hope that makes sense!
Thanks.
November 28, 2018 at 5:27 pm #743317Tom
Lead DeveloperLead DeveloperThat’s very strange – have you checked with LP support yet? GP isn’t doing anything special with the templates, so I’m not sure what the issue could be. They might be able to shed some light on it for us.
November 28, 2018 at 8:54 pm #743402Mike
Yeah, I’m spending way too much time on this, but it seems so close (and yet so far) . I just tested it with a different theme and the same problem happens, so I guess I’m on my own. I did post on their WP.org support forum, no dev replies there for the last month, and trying to figure out if there is a premium route to an answer.
Thanks for your help! Support here is awesome.
I will post back if it gets solved. LearnPress seems great for at least testing courses, so it’s a shame if one display problem knocks it out.
Cheers.
November 29, 2018 at 9:48 am #743982Tom
Lead DeveloperLead DeveloperSorry we weren’t able to help more. I’ll try to find some time to play with it.
December 12, 2018 at 1:52 pm #754999Mike
UPDATE: I think the way the lessons display is just the way LearnPress works. I checked other templates and LP’s own demo, and they’re all the same. Kinda makes sense, to make sure the 2-column lessons layout works, it sits on top of and hides the theme’s own stuff.
Anyhow, not ideal, but I’m using as-is for now.
December 12, 2018 at 4:13 pm #755085Tom
Lead DeveloperLead DeveloperThanks for the update! Appreciate it 🙂
October 17, 2020 at 10:48 am #1493483cjenti
hi all!
I know this is an old topic, anyway, I had to find a solution about it last days…
I found it there:
https://www.ugenegrg.com.np/learnpress-lesson-template-changes/have a nice day!
-
AuthorPosts
- You must be logged in to reply to this topic.