Open S419 sponsor logos in new tab or window

By default the links for the sponsor logos display by using the S419 tag will open in the same window. For orgs who want sponsor logos to link to sponsor websites, this causes a problem because by default configuration you would be pushing traffic away from your TeamRaiser event website. By adding some jquery below your S419 element you can force those links to open in a new tab/window.
Here is an example of what that sponsor element would look like using the S419 and the jquery that forces the links to open in a new tab/window:


Be sure you add this between <script> tags to run.

Y.use('jquery-ui', function(Y) {
    jQuery(function() {
                                jQuery(document).ready(function() {
                                                jQuery(".tr_sponsorship_logo_url").each(function(index) {

Disclaimer: Blackbaud provides programming examples for illustration only without warranty either expressed or implied including but not limited to the implied warranties of merchantability and/or fitness for a particular purpose. This article assumes you are familiar with HTML/CSS/JavaScript and the tools used to create and modify this code. Blackbaud Customer Support may help explain where the code should live in the product, but we will not modify or assist you with modifying or troubleshooting these examples.



Was this article helpful?