Hey Emanuele,
First thanks for trying Formality, and thanks for your 5-star review!
I’m not a dev but I’d like to know if it’s possible to get the sidebar opening of the form also directly from menu, maybe with special link or css classes?
I tried it in one single page but I wonder if it’s possible to use across the whole website in a particular CTA (contact us, for example)
Yes, it’s a little bit “tricky”, but possible…
First you have to include a Formality embed in a common area of your WordPress theme.
For example, if you use a theme with a widget-based footer (or other common areas), you can easily include the Formality shortcode inside a text widget:
[formality id="999" is_sidebar="true" disable_button="true"]
This shortcode will include an hidden form in your theme, that you can open with any link with this href:
#formality-open-999
Only some clarifications:
- Don’t forget to replace 999 with your real form id.
- You can add this “trigger” link everywhere (Menus, Widgets, Posts/pages content)
- If you have direct access to your footer template php code, you can also “hardcode” this shortcode with the do_shortcode function*.
*Example:
<?php echo do_shortcode('[formality id="999" is_sidebar="true" disable_button="true"]'); ?>
Let me know if it’s clear enough, and sorry for my poor English.
Thanks also for your suggestions.. 3rd party integrations it’s a highly requested feature, and I’ll probably start developing a first Zapier integration soon.
Cheers,
Michele