Hi!
I want to get my custom click working, reading this thread:
I got my custom click working in this way:
<button onclick="sihotWeb_startup(SIHOTWebStartupOptions)">start me up .....</button>
but i need to set something in url link in avia editor.
This is my code in function.php
function av_custom_slider_attr(){
?>
<script>
jQuery(window).load(function(){
jQuery('.custom_click a').attr('href','');
jQuery('.custom_click a').attr('onClick','sihotWeb_startup(SIHOTWebStartupOptions)');
});
</script>
<?php
}
add_action('wp_footer', 'av_custom_slider_attr');
Hey mrpacogp,
Thank you for using Enfold.
url link in avia editor.
What is the element that you’re using for the link? Please provide the url of the actual page. We would like to check it.
Best regards,
Ismael
Hi.
I put credentials to see my code.
I got inside header.php the code to load my booking system.
And i have the code inside the functions.php.
After this use the class custom_click for my button.
In the first page i have two button to test issues.
Hi mrpacogp,
Please try this code instead.
Here is the code you can put in your funtions.php
function trigger_func_on_custom_button(){
?>
<script>
(function($){
$(window).load(function() {
$('.custom_click a').click(function(e){
e.preventDefault();
sihotWeb_startup(SIHOTWebStartupOptions);
});
});
})(jQuery);
</script>
<?php
}
add_action('wp_footer', 'trigger_func_on_custom_button');
If you need further assistance please let us know.
Best regards,
Victoria
Hi!
Happy week !
I just have tested and is working
Thank you very much for support.
Best regards.
Hi,
Awesome! Glad we could help!
Please take a moment to review our theme and show your support https://themeforest.net/downloads
To know more about enfold features please check – http://kriesi.at/documentation/enfold/
Thank you for using Enfold :)
Best regards,
Ismael