Forum Replies Created
Viewing 3 posts - 1 through 3 (of 3 total)
- AuthorPosts
carlo.cocco
ParticipantHi, I’m trying to do the same thing. I want to take the ‘Contact’ section from HasHone them and put it on a child of Total theme.
I’m able to load the section and the values, adding also the WordPress management side updates, but right now there is some problem with css.
If someone needs help to do what I done, I can give my help.
carlo.cocco
ParticipantHi, I solved.
I create a new js file under total-child/js/ called total-child.js, containing the following js code to increase slider duration to 10 seconds:
jQuery(function($){ if($('#ht-bx-slider .ht-slide').length > 0){ var owl = $('#ht-bx-slider'); owl.owlCarousel({ autoplay : true, items : 1, loop : true, nav: true, dots : false, autoplayTimeout: 10000, //autoplayHoverPause:true, animateOut: 'fadeOut' }); owl.trigger('play.owl.autoplay',[1000]); } });
Then, in my child theme functions.php file, I added the following instruction:
function total_child_scripts() { wp_enqueue_script( 'total-child-custom', get_stylesheet_directory_uri() . '/js/total-child-custom.js', array('jquery'), null, true ); } add_action( 'wp_enqueue_scripts', 'total_child_scripts', 10 );
Maybe can be helpful.
Regards!
carlo.cocco
ParticipantHi, the same thing can be done with a custom js file added in a chid theme?
Thank you.- AuthorPosts
Viewing 3 posts - 1 through 3 (of 3 total)