Okay
  Public Ticket #414346
How to make Nectar slider links open in new window?
Closed

Comments

  • Heather started the conversation

    Hi there, I was following along in this ticket: https://themenectar.ticksy.com/ticket/346024

    I too am wanting to make the sliders on my website open their links in a new window when clicked. It have the 'Salient/nectar/tinymce/shortcode-processing.php' file copied over to my child theme, but I don't know what to add or take away to the 'nectar_slider_display' function to make this actually work? Any ideas/help? Thank you!!

  • Heather replied

    This worked beatifully!!!! Thank you!!

  • Adrian replied

    Hmm, I\'m trying to do the same thing but I don\'t understand your instruction about a RAW JS page element? What and where is this please?

    Forgive my ignorance :-(

  •  8,851
    Tahir replied

    @Adrian ,

    You can add it to the Google Analytics section in Salient Theme Options Panel too .

    Thanks


    ThemeNectar Support Team 

  • Adrian replied

    Awesome, that worked a treat! Thanks for the excellent support :-)

    Here\'s what I\'m building if you\'re interested.

    http://smart-thinking.co.uk/wordpress (this is just parked here while I build it)

  • [deleted] replied

    Is there any way how to make only certain slides in Nectar slideshow open in new window?My client wants exactly this :(

    Thanks for your reply and help.


    Jakub

  •  8,851
    Tahir replied

    Hey Guys,

    If you add the class \"external-button-1\" or \"external-button-2\" to your slide this could already be possible :)

    Cheers


    ThemeNectar Support Team 

  • [deleted] replied

    Hi Tahir and thanks for your quick reply.The problem is that my clients are using full slide(picture) as a link.They do not want to use buttons I am afraid :(.

    Is there any chance to achieve this with slides acting as a links?

    Thanks again.


    Jakub

  •  8,851
    Tahir replied

    Hey Again,

    See screenshot: http://prntscr.com/794t3z . You will have to add the target attribute in the \"full_slide_link\" html div in functions.php .

    Thanks


    ThemeNectar Support Team 

  • [deleted] replied

    Hi Tahir again,

    thanks for your snippet of code,which helps a bit.

    My issue is that my client has got let\'s say 4 slides in one slider.Each slide also acts as a link.Some slides are taking you to internal pages(within clients site) and some takes you to external websites.My client wants to keep internal slides opening normally as you browse the page but external links(slides) he wants to be open in new window(which makes sense)

    Is there any way how to target only certain slides in slider?So far I managed to get slides to open in new window but all of them - I need only the slides which has got external links attached to them.

    I hope there is a way of doing that?Thanks a lot buddy again for you help.I believe this could help many others around :)

    Kind Regards

    Jakub

  •  8,851
    Tahir replied

    Hey ,

    I am afraid i am out of ideas .

    Thanks


    ThemeNectar Support Team 

  • [deleted] replied

    Hi,me too.This is simple to achieve with normal slider and HTML/CSS but Iam not great with PHP.If there would be somehow possible to capture data generated by the slider and insert them into the page itself and then insert target attribute to individual slides that way - rather then insert short-code for slider in the page.

    Maybe someone will find a solution some day.Thanks for your help buddy anyway.


    Jakub