External link for slide's title and subtitle

Hi
I would like to create an external link (opening into a new window page) for the title and subtitle of the home page slider ?
thanks

1 Like

Hello,

Can you please provide a link to your website?

Kind Regards, Roman.

thanks

www.cardiomiopatiaipertrofica.info

Hello, thank you for the link. You can try to do this with jQuery.

  1. Please install and activate Insert Headers and Footers plugin that will allow you to insert JavaScript (jQuery) code.

  2. Go to your Dashboard → Settings → Insert Headers and Footers → add the following code to Scripts in Header section, and click Save button.

<script>
    jQuery(document).ready(function(){
        jQuery('#slideshow .text-slider .maintitle').wrap( "<a href='https://example.com' target='_blank' rel='noopener'></a>" );
        jQuery('#slideshow .text-slider .subtitle').wrap( "<a href='https://example.com' target='_blank' rel='noopener'></a>" );
    });
</script>

Just replace each https://example.com instance with desired links.

Please feel free to ask any other questions that you might have.

Kind Regards, Roman.

Hi

it is not working
could you please? thanks

Hello,

I don’t see that code currently applied on your website.

Can you please add that code and leave here a note?

Kind Regards, Roman.

Hi

I put the code again and now it is working.

thanks

Great! You are welcome :slight_smile:

Kind Regards, Roman.