Title: Code or Custom CSS is lost
Last modified: May 29, 2024

---

# Code or Custom CSS is lost

 *  [havidz](https://wordpress.org/support/users/havidz/)
 * (@havidz)
 * [2 years ago](https://wordpress.org/support/topic/code-or-custom-css-is-lost/)
 * 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](https://wordpress.org/support/users/thimpress/)
 * (@thimpress)
 * [2 years ago](https://wordpress.org/support/topic/code-or-custom-css-is-lost/#post-17798270)
 * 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](https://wordpress.org/support/users/havidz/)
 * (@havidz)
 * [2 years ago](https://wordpress.org/support/topic/code-or-custom-css-is-lost/#post-17798341)
 * im follow tutorial from this : [https://wordpress.org/support/topic/how-to-remove-bread-crumbs-that-the-learn-press-plugin-uses-i/](https://wordpress.org/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](https://wordpress.org/support/users/thimpress/)
 * (@thimpress)
 * [2 years ago](https://wordpress.org/support/topic/code-or-custom-css-is-lost/#post-17798585)
 * 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.
 *     ```wp-block-code
       add_filter( 'learn_press_get_breadcrumb', function( $lp_breadcrumb ) {
           return [];
       }, 11 );
       ```
   
 * 
   Thanks.
 *  Thread Starter [havidz](https://wordpress.org/support/users/havidz/)
 * (@havidz)
 * [2 years ago](https://wordpress.org/support/topic/code-or-custom-css-is-lost/#post-17804091)
 * i was added the code, but after 2 days, suddenly lost and breadcrumbs appear 
   again
   check my site : [https://tsirwah.com/courses/ngaji-jurnalistik/](https://tsirwah.com/courses/ngaji-jurnalistik/)
 *  Plugin Author [ThimPress](https://wordpress.org/support/users/thimpress/)
 * (@thimpress)
 * [2 years ago](https://wordpress.org/support/topic/code-or-custom-css-is-lost/#post-17805388)
 * 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)

The topic ‘Code or Custom CSS is lost’ is closed to new replies.

 * ![](https://ps.w.org/learnpress/assets/icon-256x256.gif?rev=3254420)
 * [LearnPress - WordPress LMS Plugin for Create and Sell Online Courses](https://wordpress.org/plugins/learnpress/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/learnpress/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/learnpress/)
 * [Active Topics](https://wordpress.org/support/plugin/learnpress/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/learnpress/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/learnpress/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [ThimPress](https://wordpress.org/support/users/thimpress/)
 * Last activity: [2 years ago](https://wordpress.org/support/topic/code-or-custom-css-is-lost/#post-17805388)
 * Status: not resolved