StumbleUpon is a famous social media site that can be used to drive traffic towards your website. You can display a custom message to the visitors coming from the StumbleUpon site.
Instructions: Add the following code to the header.php file of your WordPress theme.
Replace the text in third line with your welcome message.
<?php if( strpos($_SERVER[HTTP_REFERER], "stumbleupon.com" ) == true ): ?> <div class="welcome-stumbleupon"> <p>Hello StumbleUpon user!</p> </div> <?php endif; ?>
You may also enjoy using category parent template.