Title: remove_action wrap_content
Last modified: August 21, 2018

---

# remove_action wrap_content

 *  Resolved [chloebjohnston](https://wordpress.org/support/users/chloebjohnston/)
 * (@chloebjohnston)
 * [7 years, 9 months ago](https://wordpress.org/support/topic/remove_action-wrap_content/)
 * 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](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fremove_action-wrap_content%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [allurewebsolutions](https://wordpress.org/support/users/allurewebsolutions/)
 * (@allurewebsolutions)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/remove_action-wrap_content/#post-10618959)
 * [@chloebjohnston](https://wordpress.org/support/users/chloebjohnston/) Can you
   use custom CSS to fix the display issue?
 *  Thread Starter [chloebjohnston](https://wordpress.org/support/users/chloebjohnston/)
 * (@chloebjohnston)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/remove_action-wrap_content/#post-10619285)
 * 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](https://wordpress.org/support/users/allurewebsolutions/)
 * (@allurewebsolutions)
 * [7 years, 8 months ago](https://wordpress.org/support/topic/remove_action-wrap_content/#post-10643001)
 * 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](https://wordpress.org/support/users/allurewebsolutions/)
 * (@allurewebsolutions)
 * [7 years, 7 months ago](https://wordpress.org/support/topic/remove_action-wrap_content/#post-10730115)
 * 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.

 * ![](https://s.w.org/plugins/geopattern-icon/wp-post-modal.svg)
 * [WP Post Popup](https://wordpress.org/plugins/wp-post-modal/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-post-modal/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-post-modal/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-post-modal/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-post-modal/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-post-modal/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [allurewebsolutions](https://wordpress.org/support/users/allurewebsolutions/)
 * Last activity: [7 years, 7 months ago](https://wordpress.org/support/topic/remove_action-wrap_content/#post-10730115)
 * Status: resolved