VC Post Masonry grid – content displays unknown code?

Posted in: Newspaper
Post count: 46

Hi there. I’m using VC Post Masonry grid but when i view the post grid, the first item displays this code as the content:


/* custom css */ .td_uid_1_5c41a00b4d26b_rand { min-height: 0; } jQuery(window).load(function () { jQuery('body').find('#td_uid_1_5c41a00b4d22e .td-element-style').each(function (index, element) { jQuery(element).css('opacity', 1); return; }); }); jQuery(window).ready(function () { // We need timeout because the content must be rendered and interpreted on client setTimeout(function () { var $content = jQuery('body').find('#tdc-live-iframe'), refWindow = undefined; if ($content.length) { $content = $content.contents(); [...]

Any ideas why and how to eliminate it?
Can be seen HERE

Thanks in advance

Post count: 20688

Hi,

The masonry grid seems to be in a post, and this same post is the one with the problem. Since this post doesn’t have any content in it except the masonry grid, maybe this is why it happens. An excerpt seems to be picked randomly from the page source. The other post seems to work alright.

Maybe consider to exclude the respective post in the filter tab of the masonry element, it would have no point to display the post that the user is currently on, in the grid again
https://www.screencast.com/t/AjM8Hmjc

Thanks

Post count: 46

Thanks, Simion
That’s exactly what I have done and you’re suggestion worked. Thanks.

I posted another question about having sticky posts in the mega menu.
As this wasn’t possible, this is part of my workaround;
To have a post with a far future publish date but using a plugin that publishes it rather than scheduling. This post then appears first in megamenu in date order. I then had to place the post masonry grid within this post via VC so it acted like a category.

Not perfect, but it does what I needed.

Thanks very much for your help again. Your support is excellent and I’m very grateful.

Viewing 3 posts - 1 through 3 (of 3 total)
The forum ‘Newspaper’ is closed to new topics and replies.