"Link the slide to:" with JS code?

Cristiano Maia created the topic: "Link the slide to:" with JS code?

I'm trying to have a JS piece of code on the "Link the slide to:" filed but is not working. How do I do it?

Thanks!

#28393

Please Log in or Create an account to join the conversation.


Support replied the topic: "Link the slide to:" with JS code?

Dear Cristiano,

Could you please provide the code snippet, which you have been trying to apply?
Thank you.


Best regards,
Web-Dorado team


Joomla extensions ,
Wordpress plugins ,
Drupal modules
#28397

Please Log in or Create an account to join the conversation.


Cristiano Maia replied the topic: "Link the slide to:" with JS code?

Thanks for the quick reply!

Here is the code:

javascript:OpenClient('Register')



This is how it looks on the different links throughout the website:

<a href="javascript:OpenClient('Register');" class="btn btn-white pull-left marg-l-5">Register</a>

#28399

Please Log in or Create an account to join the conversation.


Support replied the topic: "Link the slide to:" with JS code?

Dear Cristiano,

Please open /slider-wd/frontend/views/WDSViewSlider.php file and look for the following:

onclick="<?php echo $slide_row->link ? 'window.open(\'' . $slide_row->link . '\', \'' . ($slide_row->target_attr_slide ? '_blank' : '_self') . '\')' : ''; ?>"


Please write the following instead:

onclick="<?php echo $slide_row->link; ?>"


Thank you.


Best regards,
Web-Dorado team


Joomla extensions ,
Wordpress plugins ,
Drupal modules
#28405
The following user(s) said Thank You: Cristiano Maia

Please Log in or Create an account to join the conversation.


Cristiano Maia replied the topic: "Link the slide to:" with JS code?

Perfect! Thank you!

#28417
The following user(s) said Thank You: Support

Please Log in or Create an account to join the conversation.


Time to create page: 0.181 seconds
Powered by Kunena Forum

WORLD-CLASS SUPPORT

We are here for you every step of the way. Turn to our support with any questions you might have about our products and services. Our experienced customer care team is available to help you as fast as we possibly can.

Contact us