Home / social / Entice stumbleupon visitors with custom message
  • Entice stumbleupon visitors with custom message


    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.

    wordpress snippet : PHP

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

    ( WordPress codex functions, hooks, in this snippet. )

  • Anonymous


    • http://wpsnipp.com Kevin Chard

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

Build a better with wpsnipp.com

Weekly snippets, themes, deals coupons roundup.

x No Thanks