• Resolved kranate

    (@kranate)


    is there a need to use .fade class for update notice?
    it runs in to problems while using bootstrap in admin area.

    <div id="wordfenceAutoUpdateChoice" class="fade error">

    the div won’t be shown with this configuration.

    Bootstrap:
    .fade => opacity:0
    .fade.in => opacity:1

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @kranate,

    I believe it is used to fade-out the notice once it is dismissed. However, it can be safely removed.

    Locate wp-content/plugins/wordfence/lib/wordfenceClass.php and go to line 5635:

    Change this line:

    echo '<div id="wordfenceAutoUpdateChoice" class="fade error"><p><strong>Do you want Wordfence to stay up-to-date automatically?</strong>&nbsp;&nbsp;&nbsp;<a href="#" onclick="wordfenceExt.autoUpdateChoice(\'yes\'); return false;">Yes, enable auto-update.</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="#" onclick="wordfenceExt.autoUpdateChoice(\'no\'); return false;">No thanks.</a></p></div>';

    to:

    echo '<div id="wordfenceAutoUpdateChoice" class="error"><p><strong>Do you want Wordfence to stay up-to-date automatically?</strong>&nbsp;&nbsp;&nbsp;<a href="#" onclick="wordfenceExt.autoUpdateChoice(\'yes\'); return false;">Yes, enable auto-update.</a>&nbsp;&nbsp;|&nbsp;&nbsp;<a href="#" onclick="wordfenceExt.autoUpdateChoice(\'no\'); return false;">No thanks.</a></p></div>';

    Dave

    Thread Starter kranate

    (@kranate)

    ok, thanks for your reply.

    but an future update would overwrite the changes, right?
    is this really necessary to use this class?

    my solution is an custom css style in an own separate file.

    Hi again,

    Yes the changes that you make to Wordfence will be overwritten on an update.

    The fade class that Wordfence uses has its own purpose, it causes the element to fade-out when it is dismissed.

    I’ll bring this up with the Wordfence team to see if they could perhaps change the class-name to something less generic.

    Dave

    Thread Starter kranate

    (@kranate)

    thank you Dave..
    I think an less generic name would be the best solution.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘.fade class problem with bootstrap’ is closed to new replies.