Please Make sure you follow all these steps in order to implement this feature fully functional
-
Please Create a contest page.
-
Click on
Edit CSS and JS -
Copy the page number from the url which looks like This
https://www.wishpond.com/central/landing_pages/ 2455192 /edit?type=photo&urk=418b5f54ae82abcc10425e279c33c512c5f0a7e5f23f98aa&user_action=editing&wizard_step_key=9acfbeef-4614-4981-8fe8-976f0e6a65c4
- Add the code below on the JS section
$();
function getQueryVariable(variable)
{
var query = window.location.search.substring(1);
var vars = query.split("&");
for (var i=0;i<vars.length;i++) {
var pair = vars[i].split("=");
if(pair[0] == variable){return pair[1];}
}
return(false);
}
if(getQueryVariable('gallery') == 'true'){
$('.row:eq(3)').remove()
}
else{
$('.row:eq(4)').remove();
$('.row:eq(5)').remove();
$('.row:eq(6)').remove();
$('.row:eq(7)').remove();
$('.row:eq(4)').remove();
}
$('button').click(function(){
var count = 0;
$('.form-control').each(function(){
if(this.value == ""){
count +=1;
}
})
if (count == 0){
console.log('done');
window.parent.postMessage('xgfdfsLLS', 'https://wipond.wishpond.com')
}
})- Add the code below to the CSS section
.container:first-child, .container-fluid, .col-md-6.col-md-offset-1.col-sm-7{
display: none;
}
body.wp_body{
background-color: white;
}-
Click
Next -
Select the option
Embed on My Website or BlogfromChoose where your campaign will appear -
Leave the
My Website URLempty -
Copy the embed code that looks like this:
<!-- Wishpond embed code -->
<script type="text/javascript" src="//cdn.wishpond.net/connect.js?merchantId=772639&writeKey=664c0889106b" async></script><div class="wishpond-campaign" data-wishpond-id="2455192" data-wishpond-href="https://embedded.wishpondpages.com/lp/2455192/"></div>- Click on Publish the change
-
Create any Kind of Landing page
-
Click on
Campaign Design -
Click on
Custom Javascript -
Add the code Below
$();
function closeIFrame(){
console.log('worked');
$(".hide-this").click();
}
function receiveMessage(evt){
if( evt.data === "xgfdfsLLS"){
closeIFrame();
}
}
window.addEventListener('message', receiveMessage, false);-
Click on
Add Contentand DragHTMLand drop it where you want your form to be. -
Edit the
HTMLcontent and paste the embed code that was copied on step8the following code
Make Sure You change the the content in between [] in regards to your own information
<!-- Wishpond embed code -->
<script type="text/javascript" src="//cdn.wishpond.net/connect.js?merchantId=772639&writeKey=664c0889106b" async></script><div class="wishpond-campaign" data-wishpond-id="[2455192 page number from step 3]" data-wishpond-href="https://embedded.wishpondpages.com/lp/[2455192 page number from step 3]/"></div>- Follow Step
15and16and add the following code for theGallery Section
<iframe style="position: absolute; height: 100%; border: none" src="https://embedded.wishpondpages.com/lp/[2455192 page number from step 3]/?gallery=true" style="border:0px #ffffff none;" name="gallery" scrolling="yes" frameborder="1" marginheight="0px" marginwidth="0px" height="100%" width="100%" allowfullscreen></iframe>-
Click on
Add Contentand Dragformand drop it wherever. If you already have form this step is not needed. -
Remove all the fields except the submit button
-
Click on the submit button -> click on
moreand chooseCSS Classes & ID -
write down
hide-thisand click onDone -
Click on Campaign Design
24 Click on Custom CSS
- Add the code Below and Save
.hide-this{
display: none;
}- Save the changes and Good luck