X

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.



Code Snippet:


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

Comments  Leave a Reply

  1. Sweet!

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

Add a Comment

We're glad you have chosen to leave a comment. Please keep in mind that all comments are moderated according to our privacy policy, and all links are nofollow. Do NOT use keywords in the name field. Let's have a personal and meaningful conversation.

WordPress Launch Checklist

The Ultimate WordPress Launch Checklist

We've compiled all the essential checklist items for your next WordPress website launch into one handy ebook.
Yes, Send Me the Free eBook!