Filterable grid: filters do not work.

0
Filterable grid: filters do not work. 1
FerBcn
May 09, 2017 10:56 PM 1 Answers General
Member Since May 2017
Subscribed Subscribe Not subscribe
Flag(0)

Hello.

 

I set up a filterable grid and filters are not working.

I saw that the plugin is inserting <p></p> tags in script lines, so I get Sintax error in console (Unexpected token <)

This is the code:

<p> <script>
jQuery(document).ready(function($)
{
$("#post-grid-528 .layer-media .gallery").owlCarousel({</p>
<p> items : 1,
navText : ["",""],
autoplay: true,
loop: true,
autoHeight : true,
nav : false,
dots : false,
})
});</p>
<p> </script><br />
<script>
/*Write your js code here*/
</script> <script>jQuery(window).load(function(){jQuery("#post-grid-528 .grid-items").masonry({isFitWidth: true}); });</script></p></div>
<p> <!-- End .post-grid --></p>

 

How can I get rid of those <p> thas?

 

thanks

 

 

<p> <script>
jQuery(document).ready(function($)
{
$("#post-grid-528 .layer-media .gallery").owlCarousel({</p>
<p> items : 1,
navText : ["",""],
autoplay: true,
loop: true,
autoHeight : true,
nav : false,
dots : false,
})
});</p>
<p> </script><br />
<script>
/*Write your js code here*/
</script> <script>jQuery(window).load(function(){jQuery("#post-grid-528 .grid-items").masonry({isFitWidth: true}); });</script></p></div>
<p> <!-- End .post-grid --></p>
2 Subscribers
Filterable grid: filters do not work. 1
Filterable grid: filters do not work. 3
Submit Answer
Please login to submit answer.
1 Answers
Sort By:
Best Answer
1
Filterable grid: filters do not work. 4
PickPlugins
May 09, 2017
Flag(0)

Welcome to our forum.

this issue is happening because of wpautop function.

please add following code to your theme functions.php and let me know the result.

remove_filter( 'the_content', 'wpautop' );

https://codex.wordpress.org/Function_Reference/wpautop

Regards

Filterable grid: filters do not work. 5
PickPlugins
- May 13, 2017 10:40 AM
Flag (0)
0

Please send me temporary admin.

Regards

Filterable grid: filters do not work. 6
FerBcn
- May 11, 2017 02:43 PM
Flag (0)
0

Hi Nur.

Page is not open yet. I could send you user and password to access the backend.

Filterable grid: filters do not work. 5
PickPlugins
- May 11, 2017 12:47 PM
Flag (0)
0

Please send me your link.

Regards

6+ more comments. Sign in to Reply
Replying as Submit