• Loc_rabbirt

    (@loc_rabbirt)


    Hi,

    I’ve used a theme name: Yoku and in that theme, there is learnpress folder that I what to override to the child theme, but I’m not sure how to do it.

    Could you provide some guidance about it?

    Best regards,
    Loc

Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support brianvu-tp

    (@briantp)

    Hi,

    Just simply do a Google search you would find the solutions for this

    Thread Starter Loc_rabbirt

    (@loc_rabbirt)

    Hi,

    Sorry but my coding skill not good, so I’m not sure where to take a look even I’ve tried to research google before submitting this question.

    Could you provide a reference link if it’s possible?

    Thank you so much!

    “Google it”

    Great response @briantp

    Worst support ever.

    Unlike @loc_rabbirt, I’m a senior developer and I can confirm your custom template functionality IS BROKEN.

    Templates from within a child theme are IGNORED – despite having the correct folder structure.

    You need to fix this quickly. Lots of alternative plugins in the online learning space…

    Plugin Support brianvu-tp

    (@briantp)

    Hi @cjwebdev

    To override a template in the child theme, you shout add this filter to function.php of theme ??

    
    add_filter( 'learn-press/override-templates', function(){ return true; } );
    
    Thread Starter Loc_rabbirt

    (@loc_rabbirt)

    Hi @briantp,

    I’m a supporter too. You can check the Yoku theme from GoodLayers.

    I’m not sure if you don’t know the solution from the first reply or you don’t want to help. But as a fellow and do provide support for our own customers, I’m not sure what is the difference between me and cjwebdev, you provided a solution for him after getting his complaint and not me.

    Maybe you should (not shout) patient and more friendly with us, potential clients (or recommended your plugin) in the future.

    Plugin Support brianvu-tp

    (@briantp)

    Hi @loc_rabbirt

    Yoku is not our theme so to this theme compatible with LearnPress, the developer of GoodLayers needs to to check to edit code, we not support third-party plugins or themes issues. You can create a question for our developer via GitHub LearnPress or you can read docs for the developer here

    Since support have been aggressive and less than useful:

    add_filter( 'learn-press/override-templates', function(){ return true; } );

    Add that into your theme functions.php file

    Your folder structure should be:

    YOURTHEME/learnpress

    Easiest way is to download the templates folder from the plugin folder, rename to “learnpress” and upload to your theme folder.

    • This reply was modified 3 years, 8 months ago by Paul Maloney.

    @paul-m-uk, Thank you so much, you saved my day! I’ve been searching for hours.

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘How to override the template from a theme’ is closed to new replies.