zimrock
Member
Posted 4 months ago #
I am using a My Calendar widget (and tried shortcode) to show upcoming events in the sidebar, it works fine, but when you click on an event, it opens in the same window. I want it to open in a new window (or tab). I tried adding the code suggested in the FAQ for the Behavior area to no avail. Any thoughts? Thanks...
awpouch
Member
Posted 3 months ago #
Hi Did you get an answer for this? Have same question!
Thanks
zimrock
Member
Posted 3 months ago #
The code suggested in the FAQ is only for external links. All you need to do to modify it for other links is to change the selector:
$("#upcoming-events a").live("click",
function(e){
$(this).attr('target','_blank');
});
That should work if you're using the upcoming events widget.
zimrock
Member
Posted 3 months ago #