Okay
  Public Ticket #2113347
Masonry Post Grid has JQuery Errors
Closed

Comments

  • ActionArtists started the conversation

    Hello,

    I am trying to create a Masonry Post Grid on our homepage and I am getting the following jQuery error that I cannot resolve.

    vc_grid.min.js?ver=5.6:1 Uncaught TypeError: this.$content.masonry is not a function
        at vcGridStyleLazyMasonry.setMasonry (vc_grid.min.js?ver=5.6:1)
        at vcGridStyleLazyMasonry.filter (vc_grid.min.js?ver=5.6:1)
        at vcGridStyleLazyMasonry.vcGridStyleLazy.addItems (vc_grid.min.js?ver=5.6:1)
        at i (jquery.js?ver=1.12.4-wp:2)
        at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
        at x (jquery.js?ver=1.12.4-wp:4)
        at XMLHttpRequest.c (jquery.js?ver=1.12.4-wp:4)
    setMasonry @ vc_grid.min.js?ver=5.6:1
    filter @ vc_grid.min.js?ver=5.6:1
    vcGridStyleLazy.addItems @ vc_grid.min.js?ver=5.6:1
    i @ jquery.js?ver=1.12.4-wp:2
    fireWith @ jquery.js?ver=1.12.4-wp:2
    x @ jquery.js?ver=1.12.4-wp:4
    c @ jquery.js?ver=1.12.4-wp:4
    :large:1 GET http://staging.action-artists.com/:large 404 (Not Found)


  •   Neuron replied privately
  • ActionArtists replied

    Thank you for the latest version.

    While it did take care of the 404 for the large image, I am still seeing this error. It looks to be jQuery-related. Since this is a theme that we purchased, I do not want to start making changes to it. I do see it has been 3 months since you've updated the theme.

    Here is the error again:

    Uncaught TypeError: this.$content.masonry is not a function
        at vcGridStyleLazyMasonry.setMasonry (vc_grid.min.js?ver=6.0.5:10)
        at vcGridStyleLazyMasonry.filter (vc_grid.min.js?ver=6.0.5:10)
        at vcGridStyleLazyMasonry.vcGridStyleLazy.addItems (vc_grid.min.js?ver=6.0.5:10)
        at i (jquery.js?ver=1.12.4-wp:2)
        at Object.fireWith [as resolveWith] (jquery.js?ver=1.12.4-wp:2)
        at x (jquery.js?ver=1.12.4-wp:4)
        at XMLHttpRequest.c (jquery.js?ver=1.12.4-wp:4)

    Please advise. This is holding me back from finishing this project and launching this site.


  •  675
    Neuron replied

    Hi,

    I am very sorry about it, I really don't know where the issue is coming from, since that is an element created by WPBakery Page Builder and not our team. I will do some research now to see why is that happening.

    Is there any specific feature that the element Masonry Post Grid has and not our element? So, I can help you on that?

    http://prntscr.com/osyb8o

    Our element Portfolio has the masonry layout and the metro layout, you can use them easily via our element.

    Please let me know if you need further help.

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • ActionArtists replied

    Thanks for responding. I guess I will try and load a version of jQuery in my child theme.

    Does your Portfolio grid allow you to pull an artist and their featured image into a masonry grid? I was planning on using your grid on the artists' individual pages. I wanted to use the WP Bakery post grid to do what I'm asking about above.


  •  675
    Neuron replied

    Hi,

    Well, our element is able to call only the portfolio post type, if that is enough for you.

    Well, the issue is related to the WPBakery Page Builder(Formerly Visual Composer) not to the masonry plugin.

    I've done some research and it seems like the plugin is interfering with a third-party plugin.

    https://kriesi.at/support/topic/masonry-element-not-displaying/

    Can you please try to deactivate the other plugins and see if that fixes your issue.

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  •  675
    Neuron replied

    Also, try to use the following code that the author provided, maybe it helps.

    - https://www.gomahamaya.com/visual-composer-post-grid-compatibility-issue-3rd-party-plugin/

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.

  • ActionArtists replied

    it looks like your portfolio element does what I want: pulls in an artist and displays their featured image.

  •  675
    Neuron replied

    Good to know, feel free to ask for anything you needsmile.png

    Kind Regards


    Subscribe to our newsletter to get the latest updates about NeuronThemes and join our community Facebook Group.