You have to make a minor change in the plugin code to do that. In boot_modal.php somewhere around line 135 (I can’t say EXACTLY the line number since I have made other changes to also handle translation), you change the following line:
<?php echo $this->post->post_content ; ?>
To:
<?php echo apply_filters('the_content', $this->post->post_content) ; ?>
Now you can use contact form 7 shortcodes to make a modal contact page.
Thank you very much.
I tested it and it is working perfectly. I can show almost all pages now, even those with shortcodes including contact form or visual composer content.
I suppose you can include this in update, can you?
Final question, can you show widgets?
Only pages that contain widgets can’t be showed. I suppose the code should be tweaked more for widgets pages to be showed…
Anyway thanks a lot for this fix.
Well, I’m not the author of the plugin, just a user 🙂 I like the plugin, but I have made several tweaks to the code – I have tried to get hold of the author to see if he could include it in a future version, but with no success. In addition to the shortcode change above, I have made it compatible with the qtranslate-X plugin for multi-language pages and also added parameters to the shortcode that get passed in the URL to the page that shows up in the modal.
Yes I see, there is no “author” under your name 🙂 and I missed that.
Anyway, thanks for your help. It is working very well.
I am using WPML so I don’t have any problem with multilingual pages because WPML makes copies of original pages but with different url’s. If the slug of the post is different in other language (it usually is) there is no problem to show the post.
Only the pages/posts with widgets can’t be shown.
-
This reply was modified 7 years, 4 months ago by zemunelo.
Hello @christer_f
I had the change that you made…
If you have other tweaks i’m open !
I don’t know how to write to you directly but you can contact me !
Bye
Hello @albedo0,
Don’t know h2 contact you, but you can mail me at christer@tekomatik.com
Cheers