• every update plugin learpress with latest or newest version, my additional css in function.php is lost

    i was add code to remove breadcumbs, but every update is lost, entry is required again and again

    please help and fix it, thanks

    havidz – learnpress lover

Viewing 5 replies - 1 through 5 (of 5 total)
  • Plugin Author ThimPress

    (@thimpress)

    Hi havidz,

    Could you explain how to customize code? Where should the customization occur? Customizing code through a Hook ensures it remains intact, but if modifications are made directly to the core of LearnPress, they will be lost upon updating to a new version.

    Thanks.

    Thread Starter havidz

    (@havidz)

    im follow tutorial from this : https://www.ads-software.com/support/topic/how-to-remove-bread-crumbs-that-the-learn-press-plugin-uses-i/

    in theme > function.php

    so, wwhen we can add custom code for permanent?

    Plugin Author ThimPress

    (@thimpress)

    Hi havidz,

    If you’re using only LearnPress and not our Premium theme, you can insert the following code into the functions.php file of your theme or child theme to remove the LearnPress Breadcrumb.

    add_filter( 'learn_press_get_breadcrumb', function( $lp_breadcrumb ) {
        return [];
    }, 11 );


    Thanks.

    Thread Starter havidz

    (@havidz)

    i was added the code, but after 2 days, suddenly lost and breadcrumbs appear again
    check my site : https://tsirwah.com/courses/ngaji-jurnalistik/

    Plugin Author ThimPress

    (@thimpress)

    Hi havidz,

    Oh, that’s strange. Where did you add the custom code? LearnPress cannot modify a file other than its own. We suspect it might be from when you updated the Astra theme. Did you customize the functions.php file in that theme? Shouldn’t you have made the customizations in the child theme instead?

    Thanks.

Viewing 5 replies - 1 through 5 (of 5 total)
  • You must be logged in to reply to this topic.