- Posts: 45
- Thank you received: 0
Target to Link?
-
digiwide
Inactive member - Topic Author
- Member
Less
More
9 years 8 months ago #44031
by digiwide
Replied by digiwide on topic Target to Link?
Please Log in to join the conversation.
-
digiwide
Inactive member - Topic Author
- Member
Less
More
- Posts: 45
- Thank you received: 0
9 years 8 months ago - 9 years 8 months ago #44038
by digiwide
Replied by digiwide on topic Target to Link?
The link is
www.hellastravel.nl
. Thnks!
Last edit: 9 years 8 months ago by digiwide.
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
9 years 8 months ago #44044
by ivan.milic
Replied by ivan.milic on topic Target to Link?
Add this script at bottom of templates/hot_hostel/js/hot_hostel.js:
jQuery(window).load(function(){
jQuery(".hero article a").attr("target","_blank");
});
refresh few times with ctrl+f5
jQuery(window).load(function(){
jQuery(".hero article a").attr("target","_blank");
});
refresh few times with ctrl+f5
Please Log in to join the conversation.
-
digiwide
Inactive member - Topic Author
- Member
Less
More
- Posts: 45
- Thank you received: 0
9 years 8 months ago #44046
by digiwide
Replied by digiwide on topic Target to Link?
Like this:
jQuery(document).ready(function(){
jQuery('h1').each(function(){
var text = jQuery(this).text().split(' ');
if(text.length < 2)
return;
text[1] = '<span class="secondWord">'+text[1]+'</span>';
jQuery(this).html( text.join(' ') );
});
});
Query(window).load(function(){
jQuery(".hero article a").attr("target","_blank");
});
Because still not working
jQuery(document).ready(function(){
jQuery('h1').each(function(){
var text = jQuery(this).text().split(' ');
if(text.length < 2)
return;
text[1] = '<span class="secondWord">'+text[1]+'</span>';
jQuery(this).html( text.join(' ') );
});
});
Query(window).load(function(){
jQuery(".hero article a").attr("target","_blank");
});
Because still not working
Please Log in to join the conversation.
-
ivan.milic
Support Staff - Moderator
Less
More
- Posts: 14116
- Thank you received: 1639
9 years 8 months ago #44047
by ivan.milic
Replied by ivan.milic on topic Target to Link?
you miss one j
The following user(s) said Thank You: digiwide
Please Log in to join the conversation.
Time to create page: 0.315 seconds