-
AuthorPosts
-
December 8, 2015 at 12:06 pm #548669
Hi Enfold Team,
We have a little problem with a property rentals site we are building.
We are using a plugin that creates a tabbed frame, All additional tabs within the frame area creating spate URL’s which should not be the case. After speaking with the plugin developer who as able to show us that none of the other sites using this plugin were creating separate URL’s and that it was a problem with Enfold.
Is there a way to set all additional tabs to use the same original URL. I have added login details below.
Thank you in advance
- This topic was modified 9 years ago by Vincent. Reason: typo
December 9, 2015 at 9:13 am #549558Hi,
Can you please check if the issue persists with the default WordPress theme activated?
Regards,
JosueDecember 9, 2015 at 11:26 am #549597Hi Josue,
I should have mentioned that from the start. Yes it works fine with 2015 at default. That was one of the first tests we made.
Thanks
VincentDecember 10, 2015 at 12:57 pm #550311Hi Vincent!
Try the following, open js/avia.js and look for:
if($.fn.avia_smoothscroll) $('a[href*=#]', container).avia_smoothscroll(container);
Replace it by:
// if($.fn.avia_smoothscroll) // $('a[href*=#]', container).avia_smoothscroll(container);
Best regards,
JosueDecember 13, 2015 at 2:26 pm #551649Hi Josue,
Thanks for getting back to me. However this made absolutely no difference. I copied avia.js into the child theme and updated the above file which looks like the only changes that are made are adding ‘//’ to the code front. Are yoou sure that is what you meant?Thanks
VincentDecember 13, 2015 at 2:32 pm #551653// Replace avia.js function change_aviajs() { wp_dequeue_script( 'avia-default' ); wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true ); } add_action( 'wp_enqueue_scripts', 'change_aviajs', 100 );
December 13, 2015 at 2:46 pm #551662Hi Josue
have replied belowThanks
VincentDecember 13, 2015 at 2:48 pm #551664In child theme functions.php. If you don’t have it, create it and place the code there:
<?php // Replace avia.js function change_aviajs() { wp_dequeue_script( 'avia-default' ); wp_enqueue_script( 'avia-default-child', get_stylesheet_directory_uri().'/js/avia.js', array('jquery'), 2, true ); } add_action( 'wp_enqueue_scripts', 'change_aviajs', 100 );
December 13, 2015 at 3:20 pm #551679Hi Josue, thank you and that appears to be working. The tabs are no longer jumping to the top of the page and the URL is now remaining constant throughout the tabbed view.
In the child theme avia.JS do I load the entire contents of the avia.jz parent (as I ahev done) or do I just add the code that is needed?
Thanks again for your invaluable help
Vincent
December 13, 2015 at 3:44 pm #551686A replicate of js/avia.js will need to be used as we’re dequeueing the default one, also note that if you update the theme (and if changes have been done to this file) you’d need to update it manually in your child theme.
Cheers!
JosueDecember 13, 2015 at 4:12 pm #551706Thanks Josue,
December 13, 2015 at 4:15 pm #551712You are welcome, glad to help :)
Regards,
Josue -
AuthorPosts
- You must be logged in to reply to this topic.