Forums
Home / Plugins / Javascript Popup
(@psdtutorials)
15 years ago
Hello there,
I was wondering how I might go about creating some sort of popup or warning message that would appear when a user first visits the blog??
Thanks Belal Ahmed
(@anes_pa)
14 years, 8 months ago
Hello Belal,
You can make use <?php add_action(‘pre_get_posts’,’postman’); ?> here postman is a call back Function
some like this <?php
function postman() { echo “<script>alert(‘welcome user’);</script>”;
} Try this … ok Good luck
bye anes