Adjusting Multiple Links at once in web designer 9 premium
I have built a image catalog page for my website (actually I have 2).
The first one works great (basically each catalog catagory is a different page that opens in a frame on a single page). Each of my catalog pages are filled with image links (to design templates)
On my 2nd page, I forgot to make sure that the link was opening in "Same window (_top)" and I built nearly 600-800 links going to "unspecified".
I now need to change these links to "Same window (_top)".
Is there a way to change this all at once, or do I have to open each link individually and change it individually.
If this is possible in Xara Web designer 9 premium, instructions on how to do so would be very much appreciated as changing that many links one at a time is very tedious.
Thanks
Re: Adjusting Multiple Links at once in web designer 9 premium
Welcome to TalkGraphics
I always consider tasks like this as Zen meditation. :)
I had an idea but it didn't work. So all I can suggest is check back during the day and see if any of the members has a work around or a fix for this.
And add a large note on your site (on the pasteboard area) to remember to specify Same Window Top on all new catalog pages.
Re: Adjusting Multiple Links at once in web designer 9 premium
You can add this code to the Page head Placeholder:
Code:
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.11.0/jquery.min.js" ></script>
<script>
$(document).ready(function(){
$('a[href!="_top"]').attr('target','_top');
});
</script>
This will alter all links that do not have a target of _top already.
You may have other targets (_blank) already set so do check this does not upset the other links on your page.
Acorn
Re: Adjusting Multiple Links at once in web designer 9 premium
Excellent Acorn! Thanks :)