• Resolved dtconner

    (@dtconner)


    This plugin seems to be having a conflict with other JS or JQuery code on my pages using tabs and accordions.

    Basically when clicking on an accordion or a tab the screen jumps down to the grid gallery on the page. See the following screen recording for what happens:

    https://drive.google.com/file/d/0B8YilYoaZGvONlVuWWtWcUluZ0k/view

    If I remove or disable the Grid Plus gallery component the issue goes away and accordion and tabs work properly.

    WP Theme is using Visual Composure with Accordion and Tabs as part of the elements to add.

    Please advise.

    Thanks
    David

Viewing 14 replies - 1 through 14 (of 14 total)
  • Hi,
    For your issue, you can add the following code into your theme js:

    var $is_handle_tab = 0;
    $(‘a’,’.vc_tta-tabs ul.vc_tta-tabs-list’).off(‘click’).on(‘click’,function (e) {
    if ($(this).parent().hasClass(‘vc_active’)) {
    $is_handle_tab = 1;
    }
    e.preventDefault();
    if ($is_handle_tab == 0) {
    $is_handle_tab = 1;
    var $ul = $(this).parent().parent(),
    $tab_container = $(this).closest(‘.vc_general’),
    $current_tab = $($(this).attr(‘href’), $tab_container),
    $tab_id = ”,
    $tab_active = ”;
    $tab_container.css(‘height’, $tab_container.outerHeight());
    if (typeof $ul != ‘undefined’) {
    $(‘li’, $ul).removeClass(‘vc_active’);
    $(this).parent().addClass(‘vc_active’);
    $(‘li a’, $ul).each(function () {
    $tab_id = $(this).attr(‘href’);
    if ($($tab_id + ‘.vc_active’, $tab_container).length > 0) {
    $tab_active = $($tab_id + ‘.vc_active’, $tab_container);
    }
    });
    $tab_active.fadeOut(400, function () {
    $tab_active.removeClass(‘vc_active’);
    $tab_active.fadeIn();
    $current_tab.fadeIn(0, function () {
    $current_tab.addClass(‘vc_active’);
    $is_handle_tab = 0;
    });
    })
    }
    setTimeout(function () {
    $tab_container.css(‘height’, ‘auto’);
    }, 1500);
    } else {
    $is_handle_tab = 0;
    }
    return false;
    });

    [Moderator note: code fixed. Please wrap code in the backtick character or use the code button.]

    Please try and let me know result.
    Thanks

    • This reply was modified 7 years, 7 months ago by bdbrown.
    Thread Starter dtconner

    (@dtconner)

    Still struggling with this. I think the tab and accordion JS is coming from Visual Composer.

    How exactly do I use your suggested code fix?

    Here is vc-tabs.min.js file contents:

    ——————————————

    [Large code/text excerpt removed by moderator per forum rules. Please use Pastebin or a Gist for all large code/text excerpts.]

    Code block here:
    https://pastebin.com/LbNvZy8Y

    ———————————————

    • This reply was modified 7 years, 7 months ago by bdbrown.
    Thread Starter dtconner

    (@dtconner)

    Can’t I just make a separate JS file then register it and call it within the theme-child functions.php files? I’ve done something similar before so in case the theme updates I preserve the fix. If so what precisely would need to be in the JS file as I am not that proficient in JS?

    I have checked this problem in my localhost.
    My localhost is use VC (Visual Composer) too and i have tried to add the code to js file in my theme. Now, it works well.
    If you don’t know more about js, you can do as follows:
    1, Install and Activate “WP Editor” plugin;
    2, https://prntscr.com/ez6w5r
    Code to replace here:

    [Large code/text excerpt removed by moderator per forum rules. Please use Pastebin or a Gist for all large code/text excerpts.]

    Code block here:
    https://pastebin.com/FwK3F7CE

    Please try it and let me know result.
    Thanks!

    • This reply was modified 7 years, 7 months ago by bdbrown.
    Thread Starter dtconner

    (@dtconner)

    OK. I replaced entire JS code as you just instructed. I also removed the JS code you recommended to get the category filter names to wrap to the next line. Yes the tabs and accordions work…however none of my images appear in the grid.

    Went back to the plugin to regenerate the grid and still no images. Just the images are missing. The category filter is there.

    Thread Starter dtconner

    (@dtconner)

    REplaced the entire code in your JS file minus the code to get the category filter names to wrap. All images are not showing but the tabs and accordions are working.

    Went back to the grid plugin and regenerated it. Still no images showing

    Thread Starter dtconner

    (@dtconner)

    If it helps you at all I don’t believe this was an issue a couple previous plugin revisions ago….meaning the grid gallery was working with tabs and accordions.

    @family75 – I have removed your offer to contact your user off-forum along with your contact information. Please don’t post that again.
    https://make.www.ads-software.com/support/handbook/forum-welcome/#the-bad-stuff

    @dtconner – I have removed your Skype contact information; please do not post that in these forums.

    For both – if you’re going to reference large blocks of code please use an online service as noted above.

    • This reply was modified 7 years, 7 months ago by bdbrown.
    Thread Starter dtconner

    (@dtconner)

    @bdbrown: Appreciate the moderation but this is an ongoing frustrating issue on my end that needs a resolution asap. Please explain to me how we are suppose to communicate with the developer if we cannot exchange contact information to do so outside of this platform.

    @dtconner – I understand your frustration with an ongoing issue. However, this is a public forum which exists to benefit all users. If the plugin author is willing to assist you in this forum, and it appears from your previous support topics that he is, then it needs to stay here so others are able to benefit from that information. If you or the developer want to arrange for support outside of the forums that’s fine; just don’t do it here. One other option would be to contact the developer directly on their web site:
    https://g5plus.net/contact-us/

    Hi @bdbrown, please update your website. Why can not users submit files here?
    Agreed that some information may not be public, but information like skype, why not?
    I’m really not happy about this.
    @dtconner, please contact us with this info: https://prntscr.com/f0gkki
    Thanks

    Moderator James Huff

    (@macmanx)

    @family75 As you use the support forums here, we kindly ask that you abide by the forum rules and do not send support topics to continue offsite via direct methods: https://make.www.ads-software.com/support/handbook/forum-welcome/#the-bad-stuff

    These support resources are a valuable and publicly searchable resource, so you could say the “pay off” of using the free support forums here is that they give back to community (and ultimately as such benefit you by way of less support requests, as those with the same problem can find the answer by searching).

    With that said, there are instances where support topics grow to needing some sort of private form of communication, I know that all too well myself. As a plugin author, you have some room to move within this requirement. “Please contact us via the methods available on our site” (as you have roughly done above) would be fine as that’s more indirect, but directly posting a Skype contact or email address is a bit too far against the rules we have to enforce. Even as a plugin author, the old saying applies. If we allow one person to do it, we’d have to allow everyone to do it, and we can’t allow everyone to do it, so we can’t allow one person to do it.

    In short, we respect the variety of situations that come with supporting a plugin, and thank you for using the public and searchable the forums here to do so, but we also hope you will respect that sometimes we need to step in to enforce the rules of these forums.

    Yes,
    I understand what you say.
    I will be more careful in posting personal information as well as asking others about this issue.
    Thanks for all.

    Hi there,

    I have the same issue as above, where the shortcode is not working in tabbed content, I am using the DIVI theme (Elegenthemes).

    Any ideas on how to solve this?

Viewing 14 replies - 1 through 14 (of 14 total)
  • The topic ‘JS or JQuery Conflict?’ is closed to new replies.