Tagged: ,

Viewing 12 posts - 1 through 12 (of 12 total)
  • Author
    Posts
  • #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 4 years, 9 months ago by  Vincent. Reason: typo
    #549558

    Hi,

    Can you please check if the issue persists with the default WordPress theme activated?

    Regards,
    Josue

    #549597

    Hi 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
    Vincent

    #550311

    Hi 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,
    Josue

    #551649

    Hi 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
    Vincent

    #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 );
    #551662

    Hi Josue
    have replied below

    Thanks
    Vincent

    #551664

    In 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 );
    #551679

    Hi 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

    #551686

    A 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!
    Josue

    #551706

    Thanks Josue,

    #551712

    You are welcome, glad to help :)

    Regards,
    Josue

Viewing 12 posts - 1 through 12 (of 12 total)

You must be logged in to reply to this topic.