Link photo to category in home page

More
11 years 2 months ago - 11 years 2 months ago #36271 by mojastran
Hello,

I'd like small photos on home page (categorie hompage) to link to the article same as title or read more...
It looks as if photos have the link, but it doesn't work.
Please see the attached print screen.

Best regards
Attachments:
Last edit: 11 years 2 months ago by mojastran.

Please Log in to join the conversation.

More
11 years 2 months ago #36279 by ivan.milic
send link so we could check why they does not work

Please Log in to join the conversation.

More
11 years 2 months ago #36290 by mojastran

Please Log in to join the conversation.

More
11 years 2 months ago #36297 by ivan.milic
Add htis:

jQuery(document).ready(function(){
jQuery('.image_mask').click(function(){
jQuery(this).next().find('a:first').trigger('click');
});
});

to bottom of:

templates/hot_music_band/js/hot_music_band.js

Please Log in to join the conversation.

More
11 years 2 months ago #36334 by mojastran
Hello,

i added the code (see the printscreen), but it is not working.

Regards
Attachments:

Please Log in to join the conversation.

More
11 years 2 months ago #36337 by ivan.milic
Try like this:


jQuery(document).ready(function(){
jQuery('.image_mask').click(function(){
window.location = jQuery(this).next().find('a:first').attr('href');
});
});

Please Log in to join the conversation.

Time to create page: 0.110 seconds
Powered by Kunena Forum