samedi 26 décembre 2020

Triggering a Elementor Pop up

I am trying to display an Elementor pop up based on the if-else condition from function.php in WordPress. Below is the code snippet of the if-else condition.

So instead of displaying the HTML banner, I am trying to display a pop-up created in Elementor.

if($_GET['id'] == "****"){

           echo '<meta http-equiv="Refresh" content="4; url=******" />';
       }
   
 echo '<div class="mm_success_alert">The condition is true</div>';   
       
   }else{
       
       echo '<div class="mm_danger_alert">The condition is false</div>';
  //echo '<meta http-equiv="Refresh" content="0; url=*******" />';
   }
   
  
}```

Aucun commentaire:

Enregistrer un commentaire