Home › Forums › Quform WordPress › Which link to use to open a Popup form from a theme file
- This topic has 9 replies, 3 voices, and was last updated 8 years, 9 months ago by lucmercx.
- AuthorPosts
- June 30, 2015 at 11:15 am #15741lucmercxParticipant
Hello Quform,
At this moment I use Enfold as wordpress theme and with this theme I show entries in a grid view. Directly from this view I would like to add a button opening a popup quform.
I’ve been browsing the code and can find how a record in the grid view is built. My only thing is, how to implement a link, opening a popup quform?
Code with a variable for a button linking to the detailed view:
$offerte = ''.__('offerte aanvragen','avia_framework').'<span class="more-link-arrow"></span>';
And the variable becomes output:
$output .= "<div class='knoppen'>" .$permalink. "" .$offerte. "</div>";
How can I change the variable so it opens a popup quform form?
Thanks in advance…
Front-end: the button “Offerte aanvragen” should open a Quform form:
Original Tours, Bedrijfsuitjes, Vrijgezellenfeesten en Groepsuitjes in Nederland
June 30, 2015 at 11:17 am #15742lucmercxParticipantThe first line of code is not correct:
$offerte = ''.__('offerte aanvragen','avia_framework').'<span class="more-link-arrow"></span>';
June 30, 2015 at 11:20 am #15743lucmercxParticipantAnd again a big part of my code is filtered by this forum. Please see here:
https://gist.github.com/anonymous/cd8bb6cf6567651860f1
And the second line of code is here:
July 1, 2015 at 3:15 pm #15774AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
July 7, 2015 at 8:00 am #15915lucmercxParticipantHello Ally,
Thanks for this, I’ll try to implement this. I still have a question though. Where do I link the button to, in other words, what is the code behind the button?
As you can see on my page I have about 25 articles (events) I have to link to the form.
Thanks!
July 7, 2015 at 11:33 am #15919AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
July 7, 2015 at 7:07 pm #16054sharamParticipantHey Ally
I have the form installed and upon click it just turns the page shadowy and the form wont open any more, any idea why that is??
Thanks.
July 13, 2015 at 10:16 am #16247AllySupport StaffYou don't have permission to view this content. Please log in or register and then verify your purchases to gain access.
July 14, 2015 at 8:34 am #16274lucmercxParticipantHello Ally,
Sorry to bother you again. The solution provided does not work. I have implemented the script in the header.php file of my child theme and the php script linking to the form ID in the footer of my child theme.
Could you please have a look?
I implemented it on a site with exactly the same code but which is not in production yet so I can freely “play” with the code:
Thanks in advance, Ally!
July 14, 2015 at 8:37 am #16275lucmercxParticipantHold it, it works like a charm. Going over my implementation I missed the change of the iphorm-fancybox-link-1 to the right ID.
Thanks for your support, Ally. This works!
- AuthorPosts
- You must be logged in to reply to this topic.