• Resolved techsrx

    (@techsrx)


    Hello, I really need your help. I have developed a plugin with a bootstrap modal, however when I activate WPPA an inline style (style=”opacity: 0; display: block;”) is added/applied to the modal div on page load. This is causing many troubles for my plugin. My modal div is now covering the entire window accept for the admin bar. Can you think of what in WPPA would add an inline style to my hidden modal div? My modal div is as follows:
    <div id=”aboutModal” class=”modal fade” tabindex=”-1″ role=”dialog” aria-labelledby=”aboutModalLabel” aria-hidden=”true”>
    modal stuff here
    </div>
    Thanks in advance,
    Russ

    https://www.ads-software.com/plugins/wp-photo-album-plus/

Viewing 8 replies - 1 through 8 (of 8 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Is this backend ( admin ) ? If so, its the class .fade in wppa-adminscripts.js line 15:

    jQuery(document).ready(function() {
    /* alert( 'You are running jQuery version: ' + jQuery.fn.jquery ); */
    
    	jQuery(".fade").fadeTo(200000, 0.0)
    	});
    Thread Starter techsrx

    (@techsrx)

    That was it!

    So, I love your plugin and think it is the best gallery plugin. Thank you for all your hard work and dedication. But I have to ask why do you call your .js globally for wp-admin and not just on your own plugin pages?

    How can I use the fade class on my modals? How can our 2 plugins coexist?

    Thanks for helping.
    Russ

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Intially ( 4 years ago or so ) i thought wp has ‘forgotten’ to implement fade because it is used at more places but does nothing….

    I will remove it in the next version, i was not glad with it anyway and the last thing i want is to bother anyone else with it. So delete the snippet and don’t worry for the next update.

    Thread Starter techsrx

    (@techsrx)

    ok, sounds good. I appreciate your time and help. Thanks Russ

    Thread Starter techsrx

    (@techsrx)

    Hello, opajaap

    I just installed your latest update and the reference to jQuery fade was not removed. So the update broke my plugin again. Can you take that out on the next update or only use it on WPPA pages in wp-admin?

    Thanks,
    Russ

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Sorry, forgotten.. I’l do it right away.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Done, new installs will have it out. Thanx.

    Thread Starter techsrx

    (@techsrx)

    Perfect thank you very much.

Viewing 8 replies - 1 through 8 (of 8 total)
  • The topic ‘WPPA inline style forced on another plugins div’ is closed to new replies.