Dear Sirs,
I am using Gravity forms and thay recommend popup maker plugin. I have therefore created a pop up with the form embedded using avia layout builder and using the button in the content elements tab. I have set up a popup called Brochure Website with the gravity form embedded with a css class of popmake-5288 but cant seem to get this to work. I have also added some php from another enfold forum see below but if even if I add this on a text block the popup short code to be selected but and when I select brochure website it wont save the trigger from here?
Please note I have added this also
Can you help
Code now in functions php
function avf_alb_supported_post_types_mod( array $supported_post_types )
{
$supported_post_types[] = “popup”;
return $supported_post_types;
}
add_filter(‘avf_alb_supported_post_types’,’avf_alb_supported_post_types_mod’, 10, 1);
function my_custom_exec_sc_only( $exec_sc_only, $obj_sc, $atts, $content, $shortcodename, $fake )
{
/**
* Return if true – Enfold already requested an execution because of preview in backend
* Otherwise this is likley to be false.
*/
if( true === $exec_sc_only )
{
return $exec_sc_only;
}
return true;
/**
* Make your checks here – make sure to return boolean true if you want to force execution
*
* Following is an example to allow it for all ajax calls.
*/
if( defined( ‘DOING_AJAX’ ) && DOING_AJAX )
{
return true;
}
return $exec_sc_only;
}
add_filter( ‘avf_alb_exec_sc_only’, ‘my_custom_exec_sc_only’, 10, 6 );
