wordpress snippets last updated   : January 29, 2015
we now have 646 snippets

Entice stumbleupon visitors with custom message

wordpress snippet

Great little snippet by Filip Stefansson to display a custom message for people visiting via stumbleupon. Add this snippet to your wordpress template a good place is within the header.php.

snippet :  PHPcopy
<?php if( strpos($_SERVER[HTTP_REFERER], "stumbleupon.com" ) == true ): ?>
    <div class="welcome-stumbleupon">
        <p>Hello StumbleUpon user!</p>
<?php endif; ?>
source →

Did you like this post? If so please share it with your friends. Thanks!

  • Anonymous


    • http://wpsnipp.com Kevin Chard

      Great snippet Filip, forgot to link your name to the wp site, updated the post.