• Resolved chloebjohnston

    (@chloebjohnston)


    This plugin is fantastic! Thanks for all your hard work!
    I’ve created a custom template, and now there are now two #modal-ready divs, which are both loading in the modal and causing a display issue. I’d like to unhook the wrap_content function, but can’t seem to get the remove_action function correct. Could anyone help? Thanks!

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Author allurewebsolutions

    (@allurewebsolutions)

    @chloebjohnston Can you use custom CSS to fix the display issue?

    Thread Starter chloebjohnston

    (@chloebjohnston)

    I’m afraid CSS won’t fix it in this case. If I alter the actual plugin files to change the wrap_content function to not add the “modal-ready” div, all is well. So if I could just unhook that function, but I can’t seem to get the code right. I feel like this should work, but it doesn’t. Do I have the class wrong, or am I just way off base?

    add_action( ‘wp_head’, ‘remove_modal_ready_id’ );
    function remove_modal_ready_id(){
    global $plugin_public;
    remove_action( ‘the_content’, array($plugin_public, ‘wrap_content’ ));
    };

    Thanks so much for your time!

    Plugin Author allurewebsolutions

    (@allurewebsolutions)

    I don’t see why your code wouldn’t work. It looks correct to me.

    You’re definitely on the right track.

    Plugin Author allurewebsolutions

    (@allurewebsolutions)

    Closing, but if you find a solution, please let me know!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘remove_action wrap_content’ is closed to new replies.