Customize the content of the modal
-
Hi,
Already thnak’s for your article and for your plugin … so easy to use!!
I’m trying to customize the content of the modal (adding title or thumbnail)…I copy the function in my functions.php:
/** * Wrap content * * @return string * * @since 1.0.0 */ add_action('the_content', 'wrap_content'); function wrap_content($content) { return '<div id="modal-ready">' . $content . '</div>'; }
… i can override with custom html: great!!!
but i would like to add the title and thumbnail… try to add “the_title();” but no way
Any easy idea?
Thank’s again
Best
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Customize the content of the modal’ is closed to new replies.