How to open links in a new window
It is possible to make any links open in a new window, whether it is menu links or links from Crumina Page slider etc.
You have to use this script to make this parameter work.
<script type=”text/javascript”>
jQuery(”).click(function() {
jQuery(this).attr('target', '_blank');
});
</script>
Now you have to add class or ID of the element that has to be opened in a new window to the brackets of this line.
jQuery(”)
For example, you want to open all menu items in a new window. You have to insert the class of menu items in the code.
Example,
<script type=”text/javascript”>
jQuery('.main-menu-item a').click(function() {
jQuery(this).attr('target', '_blank');
});
</script>
If you want to open several links in a new window, put classes (IDs) to the code separated by commas.
Example,
<script type=”text/javascript”>
jQuery('.nav-menu-item-4514 a, .nav-menu-item-4653 a').click(function() {
jQuery(this).attr('target', '_blank');
});
</script>
Insert the code to:
– Options>Main Options>Custom JS (Secondtouch, Maestro, Glider);
– Theme options(Options)>Advanced options>Tracking code (Onetouch, Atlantis, Embrace).
If you are good at CSS, you will easily find the needed class or ID on browser console.
But if not, you can always ask Crumina support team for help.