hi there,
because i'm new here, in a few words...
i'm managing the websites for two associations working
in the youth welfare. i do this in my free time, on free base...
so now the problem:
because there's is much info-material in pdf format, i have to get wordpress to open every pdf-link in a new window.
i couldnt find a plugin doing this, only for external links.
with google i found this snippet for jquery
$("a[href*=.pdf]").click(function(){
window.open(this.href);
return false;
});
(source: http://blog.codesignstudios.com)
i searched, read and tried for hours - but still don't get it :(
...cause i'm just a html-css-guy ;)
where do i have to put this code to make it work?
tried to put it in /wp-includes/js/jquery/jquery.js - ...nothing
tried to put it in a seperate js-file (/my.js) and run the script
with <script src="/my.js" type="text/javascript"></script>
from the header.php of the theme. placed it right before the </head>-tag.
- still nothing...
would be nice, if someone can give me some help.
bye,
binxy