Thursday, August 4, 2022
HomeWordPress DevelopmentUtilizing Learndash or different plugin templates in Timber primarily based theme

Utilizing Learndash or different plugin templates in Timber primarily based theme


I’ve seen some dialogue on the subject of methods to use Timber in plugin templates. However that is not my query. I take advantage of Learndash to promote programs. Learndash has lots of templates and property included which might be positioned within the plugin listing in a folder known as ld30. That is principally the default theme of the plugin. There are routes like /programs/courseXY and /classes/lessonXY.

Now as a substitute of selecting the plugin templates, my Timber primarily based theme simply makes use of the default archive.php and single.php information once I go to those routes. And naturally, due to this, your complete consumer interface and performance of the plugin does not work. What am I lacking?

Even when I might create pages like archive-sfwd-courses.php and single-sfwd-courses.php and so forth after which place plugin shortcodes and features on them, it will be an enormous effort and most probably I’d miss a number of the features and edge instances coated by the built-in templates. So I would like to make use of their templates quite than create my very own ones from scratch. Even when I copy all of the associated information to my theme’s root listing (as said in this text), it does not work.

If I swap to a different WordPress default theme that’s not primarily based on Timber, it really works as anticipated. It is laborious to find out if it is a compatibility situation between Learndash and Timber, or one thing basic that I am overlooking that happens with any plugin that gives its personal templates.

This is the theme i am constructing: https://github.com/kilianso/woodplane

Any trace can be actually appreciated!

RELATED ARTICLES

LEAVE A REPLY

Please enter your comment!
Please enter your name here

- Advertisment -
Google search engine

Most Popular

Recent Comments