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:

[[S416:0:HORIZONTAL:100:200:100]]

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

Y.use('jquery-ui', function(Y) {
    jQuery(function() {
                                jQuery(document).ready(function() {
                                                console.log("ready!");
                                                jQuery(".tr_sponsorship_logo_url").each(function(index) {
                                                                jQuery(this).attr("target","_blank");
                                                });
                                });
                });
});

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.

Environment

 Luminate

Was this article helpful?


Thanks for your feedback! Did this solve your issue?

Comments (optional):


Thanks for your feedback!
We're glad it was helpful but sorry it didn’t solve your issue. If you need assistance, click Chat with Support below.
We’re sorry to hear that. Please tell us why.

 I don't like how this works.

 The answer is confusing.

 The answer didn't match what I was searching for.

Additional Comments (optional):


Thanks for your feedback! If you need assistance, click Chat with Support below.
Thanks for your feedback. Help us make our products even better by sharing details in our Idea Banks or our online Community.
Thanks for letting us know. We'll work on clarifying the information in the article. If you need assistance, click Chat with Support below.
Thanks for letting us know. We'll work on updating the search engine to return more relevant results.