wordpress snippets last updated   : April 14, 2014
we now have 630 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>
    </div>
<?php endif; ?>
source →
  • Anonymous

    Sweet!

    • http://wpsnipp.com Kevin Chard

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

jqsnipp.com | we just launched jquery snippets website