Opening links in new window on separate page
-
I would like to open tiles in a new tab or window, but only on a specific page of my WordPress site.
I have set up a new template, page-template-blank.php, and I’d like the tiles to open in a new window, but ONLY in this template / page.
I have figured out that in wp-tiles.min.js the following change needs to be made…
onclick=’window.location=\”” + url + “\”‘>”
to ->
onclick=’window.open(\””+url+”\”)’>”
However, how to get this just to work on my new template? Is it possible to create a separate js file with the change, then have the template load this instead of wp-tiles.min.js ??
Any ideas Mike? ??
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Opening links in new window on separate page’ is closed to new replies.