• Resolved rebelangelo

    (@rebelangelo)


    Hi,

    After update to 2.1.2 from 2.1.1 my child theme overrides doesnt recognize.

    Hiearchy looks same with previous version.

    I and only changed few lines from “class-security-check.php” add

    add_action( 'bp_before_registration_submit_buttons', array( $this, 'render' ) );

    and “class-math-check.php” deleted element style

    <div style="margin: 12px 0;" class="security-question-section">

    What could be the problem?

    Thanks

    https://www.ads-software.com/plugins/bp-security-check/

Viewing 1 replies (of 1 total)
  • Plugin Author Shea Bunge

    (@bungeshea)

    If you’re editing the plugin files, then they will always be overridden when the plugin is updated.

    Instead, you should add this CSS to your child theme’s style.css:

    .security-question-section {
    	float: none !important;
    	clear: none !important;
    	width: auto !important;
    	margin: 12px 0 !important;
    }

    And this to your functions.php file:

    add_action( 'init', function () {
    	$security_check = \Shea\BP_Security_Check\plugin()->security_check;
    	remove_action( 'bp_after_signup_profile_fields', array( $security_check, 'render' ) );
    	add_action( 'bp_before_registration_submit_buttons', array( $security_check, 'render' ) );
    } );

    This way, the changes will be part of your child theme and not be removed when you update.

    • This reply was modified 8 years, 2 months ago by Shea Bunge. Reason: minor formatting fix
    • This reply was modified 8 years, 2 months ago by Shea Bunge.
Viewing 1 replies (of 1 total)
  • The topic ‘After last update my child theme overrides seems doesnt work’ is closed to new replies.