This is the page where the form is triggered from: http://www.fionapagemusic.co.uk/?page_id=486
The trigger is just the code: [iphorm_popup id=2 name=”Booking form”]Book a lesson now![/iphorm_popup]
Ideally I would like to make the buttons have the same functionality. Do you think it’s possible?
Tom ( Support)Keymaster
Try adding this iphorm-fancybox-link to the page within your menu admin. You may need to enable CSS Classes.
To do this, go to Appearance, Menus. Click Screen Options at the top right and tick CSS Classes. Choose your page from the menu below and paste the code into the CSS Classes field. Save and test it.
It may not work due to the plugin assigning a id, If that doesn’t work it will need to be custom coded with jQuery. If you are interested in this please contact me for a price.
I have found this piece of info in reference to the current question:
Adding the form to a theme PHP file
You will need the unique ID number of your form to do this, you can find this number at the top of the form builder when editing a form or on the list of forms. Once you have it, insert the code below to your WordPress theme PHP file and replace FORM_ID with the unique ID number.
<?php if (function_exists('iphorm')) echo iphorm(FORM_ID); ?>
Could you tell me which file I would need to add this to? And then presumably Tom’s advice will work?
We can only give a guide because it is custom work, however, you will need this plugin to run PHP in posts/pages.
Then add the following to Header Settings -> Add Custom HTML.
<div id="my-iphorm" style="display:none;">
[php] if (function_exists('iphorm')) echo iphorm(FORM_ID); [/php]
Then in the Appearance -> Menus -> Add the #my-iphorm to the menu URL which will activate it, plus add fancybox to the class for that menu item.
If that doesn’t work, unfortunately it would be some custom work.
Thanks for the reply.
When I do the step: Appearance -> Menus -> Add the #my-iphorm to the menu URL
Do I need to just paste verbatim #my-iphorm into the URL box? And then iphorm-fancybox-link in the CSS classes (optional) box?
What should I expect to see differently or do differently once I’ve made this changes?
You must be logged in to reply to this topic.